Skip to content

Commit

Permalink
Fix flaky test (#350)
Browse files Browse the repository at this point in the history
* Wait until element becomes enabled

* changeset
  • Loading branch information
saskliutas authored Nov 22, 2023
1 parent 8dffd22 commit ea9fb4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .changeset/spotty-eels-unite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ describe("<QuantityPropertyEditorInput />", () => {
);

const input = await waitFor(() => getByRole("textbox"));
await waitFor(() => expect((input as HTMLInputElement).disabled).to.be.false);

await user.type(input, "123.4 unit");
await user.tab();
Expand Down

0 comments on commit ea9fb4a

Please sign in to comment.