Skip to content

Commit

Permalink
💚 - fix: Attempt fixing build
Browse files Browse the repository at this point in the history
  • Loading branch information
SilviaAmAm committed May 31, 2024
1 parent 7a1d29a commit 8985d3c
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions src/components/dropdown/dropdown.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ export const ActivateOnFocus: Story = {
await userEvent.keyboard("{Escape}");
await waitFor(() => expect(canvas.queryByRole("dialog")).toBeNull());
await userEvent.tab({ shift: true, delay: 10 });

await waitFor(() =>
expect(document.activeElement?.textContent).not.toBe("Hover me!"),
);

await userEvent.tab({ delay: 10 });
await waitFor(() =>
expect(document.activeElement?.textContent).toBe("Zaaktypen"),
Expand Down Expand Up @@ -308,9 +313,19 @@ export const NestedDropdown: Story = {
expect(document.activeElement?.textContent).toBe("Zaaktypen"),
);

for (let counter = 0; counter < 3; counter++) {
await userEvent.tab({ delay: 20 });
}
await userEvent.tab({ delay: 20 });

await waitFor(() =>
expect(document.activeElement?.textContent).toBe("Documenttypen"),
);

await userEvent.tab({ delay: 20 });

await waitFor(() =>
expect(document.activeElement?.textContent).toBe("Admin"),
);

await userEvent.tab({ delay: 20 });

await expect(document.activeElement?.textContent).toBe(
parameters.lastButtonText,
Expand Down

0 comments on commit 8985d3c

Please sign in to comment.