Fix storybook test (#16416)

This commit is contained in:
Etienne
2025-12-09 11:29:23 +01:00
committed by GitHub
parent ae2919e564
commit ec2b6ae691
3 changed files with 10 additions and 8 deletions
@@ -234,11 +234,12 @@ export const NetworkError: Story = {
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
expect(await canvas.findByText('Request Failed')).toBeVisible();
expect(
await canvas.findByText(
'Network connection failed: timeout after 30 seconds',
),
).toBeVisible();
expect(await canvas.findByText('An error occurred')).toBeVisible();
const codeEditor = await canvas.findByRole('textbox');
expect(codeEditor).toHaveValue(
'Network connection failed: timeout after 30 seconds',
);
},
};