Skip to content

Commit

Permalink
fix SettingsPage test
Browse files Browse the repository at this point in the history
  • Loading branch information
bgptr committed Dec 23, 2023
1 parent 40b406e commit 3fd5b6e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/unit/components/views/SettingsPage/SettingsPage.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,9 @@ const testTextFieldInput = async (

const inputControl = screen.getByLabelText(labelName);
expect(inputControl.value).toMatch(oldValue);
await user.clear(inputControl);
await user.type(inputControl, newValue);
fireEvent.change(inputControl, {
target: { value: newValue }
});
// press enter
fireEvent.keyDown(inputControl, {
key: "enter",
Expand Down

0 comments on commit 3fd5b6e

Please sign in to comment.