Skip to content

Commit

Permalink
Iterate
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Telatynski <[email protected]>
  • Loading branch information
t3chguy committed Nov 18, 2024
1 parent 7825189 commit 3ea8d89
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -654,8 +654,8 @@ describe("<UserInfo />", () => {
});

await expect(screen.findByRole("button", { name: "Deactivate user" })).resolves.toBeInTheDocument();
if (screen.queryByRole("progressbar")) {
await waitForElementToBeRemoved(() => screen.queryByRole("progressbar"));
if (screen.queryAllByRole("progressbar").length) {
await waitForElementToBeRemoved(() => screen.queryAllByRole("progressbar"));
}
expect(container).toMatchSnapshot();
});
Expand Down

0 comments on commit 3ea8d89

Please sign in to comment.