Fix storybook test (#16416)
This commit is contained in:
+6
-5
@@ -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',
|
||||
);
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user