Fix Storybook tests (#9554)

Finally fixing the storybook tests!
This commit is contained in:
Charles Bochet
2025-01-10 20:54:10 +01:00
committed by GitHub
parent 2e0169b954
commit 5ec28afac9
5 changed files with 55 additions and 28 deletions

View File

@ -38,7 +38,9 @@ export const Open: Story = {
play: async () => {
const canvas = within(document.body);
const dropdownButton = await canvas.getByRole('button');
const dropdownButton = await canvas.findByRole('button', {
name: 'Inactive Object Options',
});
await userEvent.click(dropdownButton);
},
@ -48,7 +50,9 @@ export const WithActivate: Story = {
play: async () => {
const canvas = within(document.body);
const dropdownButton = await canvas.getByRole('button');
const dropdownButton = await canvas.findByRole('button', {
name: 'Inactive Object Options',
});
await userEvent.click(dropdownButton);
@ -69,7 +73,9 @@ export const WithDelete: Story = {
play: async () => {
const canvas = within(document.body);
const dropdownButton = await canvas.getByRole('button');
const dropdownButton = await canvas.findByRole('button', {
name: 'Inactive Object Options',
});
await userEvent.click(dropdownButton);