Skip to content

Commit

Permalink
fix: update Header.stories tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiasimonato committed Apr 10, 2024
1 parent 2212f22 commit 0822432
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/ui/src/components/Organisms/Header.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,14 @@ export const Expanded: StoryObj<FrameQuery> = {
} else {
await userEvent.click(
await navigation.findByRole('button', { name: 'Products' }),
{
delay: 100, // The navigation does not appear randomly without this delay.
},
);
await navigation.findByRole('link', { name: 'Drupal' });
const dialog = within(
await within(canvasElement.parentElement!).findByRole('dialog'),
);
await dialog.findByRole('link', { name: 'Drupal' });
}
},
};

0 comments on commit 0822432

Please sign in to comment.