Skip to content

Commit

Permalink
fix: add async for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
benlister-okta committed Feb 22, 2024
1 parent 2598aa7 commit 30144dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,8 @@ export const Overlay: StoryObj<DrawerProps> = {
await step("open Default Drawer", async () => {
const buttonElement = canvas.getByText("Open drawer");
await userEvent.click(buttonElement);
await waitFor(() => {
axeRun("Default Drawer");
await waitFor(async () => {
await axeRun("Default Drawer");
});
});
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ export const Default: StoryObj<DialogProps> = {
await step("open Default Dialog", async () => {
const buttonElement = canvas.getByText("Open dialog");
await userEvent.click(buttonElement);
await waitFor(() => {
axeRun("Default Dialog");
await waitFor(async () => {
await axeRun("Default Dialog");
});
});
},
Expand Down

0 comments on commit 30144dd

Please sign in to comment.