From 36bd0d84e6376a7ee61bf86fc1f0111e88ff41ca Mon Sep 17 00:00:00 2001 From: asiaznik Date: Fri, 8 Mar 2024 14:57:51 +0100 Subject: [PATCH] fix: clear before typing --- .../src/lib/components/order-list/order-edit-dialog.spec.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/orders/src/lib/components/order-list/order-edit-dialog.spec.tsx b/libs/orders/src/lib/components/order-list/order-edit-dialog.spec.tsx index deace6952..fcb3b3ab3 100644 --- a/libs/orders/src/lib/components/order-list/order-edit-dialog.spec.tsx +++ b/libs/orders/src/lib/components/order-list/order-edit-dialog.spec.tsx @@ -17,6 +17,7 @@ describe('OrderEditDialog', () => { ); const editOrder = await screen.findByTestId('edit-order'); const limitPrice = within(editOrder).getByLabelText('Price'); + await userEvent.clear(limitPrice); await userEvent.type(limitPrice, '0.111111'); const submitButton = within(editOrder).getByRole('button', { name: 'Update',