-
Notifications
You must be signed in to change notification settings - Fork 255
Open
Labels
bugSomething isn't workingSomething isn't workingneeds assessmentThis needs to be looked at by a team memberThis needs to be looked at by a team member
Description
Prerequisites
`
it('should display a mathematical expression when operators are entered', async () => {
const mockOnChange = jest.fn();
render(
<CalculationInput
onChange={mockOnChange}
minorUnits={100}
currency='RUR'
dataTestId='calculation-input'
/>,
);
const input = await screen.findByRole('textbox');
await userEvent.type(input, '100+50');
await waitFor(() => {
expect(input).toHaveValue('100 + 50');
});
});
`
Expected: "100 + 50"
Received: "10 050"
Expected behavior
Expected: "100 + 50"
Actual behavior
Received: "10 050"
User-event version
14.6.1
Environment
Testing Library framework:
JS framework:
Test environment:
DOM implementation:
Additional context
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingneeds assessmentThis needs to be looked at by a team memberThis needs to be looked at by a team member