fix: unit tests

This commit is contained in:
asiaznik 2024-03-06 14:27:31 +01:00
parent 08b31ea43e
commit 968ec4f3f8
No known key found for this signature in database
GPG Key ID: 4D5C8972A02C52C2
5 changed files with 5 additions and 3 deletions

View File

@ -883,7 +883,7 @@ describe('DealTicket', () => {
'deal-ticket-error-message-price'
);
expect(errorMessage).toHaveTextContent(
'Price accepts up to 2 decimal places'
'Price must be a multiple of 0.01 for this market'
);
});
});

View File

@ -54,6 +54,7 @@ export const generateFill = (override?: PartialDeep<Trade>) => {
decimalPlaces: 5,
state: MarketState.STATE_ACTIVE,
tradingMode: MarketTradingMode.TRADING_MODE_CONTINUOUS,
tickSize: '1',
fees: {
__typename: 'Fees',
factors: {

View File

@ -22,7 +22,7 @@ export const generateFundingPayment = (
decimalPlaces: 5,
state: MarketState.STATE_ACTIVE,
tradingMode: MarketTradingMode.TRADING_MODE_CONTINUOUS,
tickSize: '1',
fees: {
__typename: 'Fees',
factors: {

View File

@ -24,7 +24,7 @@ describe('OrderEditDialog', () => {
await userEvent.click(submitButton);
const inputErrorText = within(editOrder).getByTestId('input-error-text');
expect(inputErrorText).toHaveTextContent(
'Price accepts up to 1 decimal places'
'Price must be a multiple of 0.1 for this market'
);
});
});

View File

@ -140,6 +140,7 @@ describe('WithdrawFormContainer', () => {
positionDecimalPlaces: 0,
state: Types.MarketState.STATE_SUSPENDED,
tradingMode: Types.MarketTradingMode.TRADING_MODE_MONITORING_AUCTION,
tickSize: '1',
fees: {
__typename: 'Fees',
factors: {