Skip to content

Commit

Permalink
automation test 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Quanmuito committed Jan 24, 2024
1 parent cb9c1cd commit ade9352
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/__tests__/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ describe('Test render', () => {
expect(description).toBeInTheDocument();

userEvent.type(input, '10');
let result1 = await screen.findByLabelText(/total delivery fee/i);
expect(result1).toHaveValue('2,00');
expect(input).toHaveValue('10');

userEvent.type(input, '200');
let result2 = await screen.findByLabelText(/total delivery fee/i);
expect(result2).toHaveValue('0,00');
expect(input).toHaveValue('200');
});
});

0 comments on commit ade9352

Please sign in to comment.