fix: console-lite e2e tests (#1576)
This commit is contained in:
parent
9a88c33458
commit
efcd128240
@ -299,7 +299,7 @@ describe('Market trade', { tags: '@smoke' }, () => {
|
||||
cy.getByTestId('place-order').click();
|
||||
cy.getByTestId('dialog-title').should(
|
||||
'have.text',
|
||||
'Confirm transaction in wallet'
|
||||
'Awaiting network confirmation'
|
||||
);
|
||||
}
|
||||
});
|
||||
|
@ -41,8 +41,12 @@ const useAccountColumnDefinitions = () => {
|
||||
valueFormatter: ({
|
||||
value,
|
||||
data,
|
||||
}: VegaValueFormatterParams<AccountFields, 'deposited'>) =>
|
||||
addDecimalsFormatNumber(value, data.asset.decimals),
|
||||
}: VegaValueFormatterParams<AccountFields, 'deposited'>) => {
|
||||
if (value && data) {
|
||||
return addDecimalsFormatNumber(value, data.asset.decimals);
|
||||
}
|
||||
return '-';
|
||||
},
|
||||
},
|
||||
{
|
||||
colId: 'used',
|
||||
@ -52,8 +56,12 @@ const useAccountColumnDefinitions = () => {
|
||||
valueFormatter: ({
|
||||
value,
|
||||
data,
|
||||
}: VegaValueFormatterParams<AccountFields, 'used'>) =>
|
||||
addDecimalsFormatNumber(value, data.asset.decimals),
|
||||
}: VegaValueFormatterParams<AccountFields, 'used'>) => {
|
||||
if (value && data) {
|
||||
return addDecimalsFormatNumber(value, data.asset.decimals);
|
||||
}
|
||||
return '-';
|
||||
},
|
||||
},
|
||||
];
|
||||
}, [open]);
|
||||
|
@ -20,7 +20,10 @@ function isAccount(
|
||||
| AccountFieldsFragment
|
||||
| IterableElement<AccountEventsSubscription['accounts']>
|
||||
): account is AccountFieldsFragment {
|
||||
return (account as AccountFieldsFragment).__typename === 'Account';
|
||||
return (
|
||||
(account as AccountFieldsFragment).__typename === 'Account' ||
|
||||
Boolean((account as AccountFieldsFragment).asset?.id)
|
||||
);
|
||||
}
|
||||
|
||||
export const getId = (
|
||||
|
Loading…
Reference in New Issue
Block a user