fix: clear before typing

This commit is contained in:
asiaznik 2024-03-08 14:57:51 +01:00
parent b26c1bac7a
commit 36bd0d84e6
No known key found for this signature in database
GPG Key ID: 4D5C8972A02C52C2

View File

@ -17,6 +17,7 @@ describe('OrderEditDialog', () => {
); );
const editOrder = await screen.findByTestId('edit-order'); const editOrder = await screen.findByTestId('edit-order');
const limitPrice = within(editOrder).getByLabelText('Price'); const limitPrice = within(editOrder).getByLabelText('Price');
await userEvent.clear(limitPrice);
await userEvent.type(limitPrice, '0.111111'); await userEvent.type(limitPrice, '0.111111');
const submitButton = within(editOrder).getByRole('button', { const submitButton = within(editOrder).getByRole('button', {
name: 'Update', name: 'Update',