Skip to content

Commit

Permalink
Fix storybook tests on IconPicker
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesBochet committed Mar 15, 2024
1 parent 5e5ae0b commit 19a8d60
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const WithSearch: Story = {

await sleep(100);

const searchedIcon = canvas.getByRole('button', {
const searchedIcon = canvas.findByRole('button', {
name: 'Icon Building Skyscraper',
});

Expand All @@ -81,7 +81,7 @@ export const WithSearchAndClose: Story = {

await sleep(100);

const searchedIcon = canvas.getByRole('button', {
const searchedIcon = await canvas.findByRole('button', {
name: 'Icon Building Skyscraper',
});

Expand Down

0 comments on commit 19a8d60

Please sign in to comment.