Skip to content

The open-source app everyone uses to manage agents at work

refactor(storybook): check recovery disclosure visibility (#16828)

Dotta6e8991963178
diff --git a/ui/storybook/stories/recovery/execution-blocker-notice.stories.tsx b/ui/storybook/stories/recovery/execution-blocker-notice.stories.tsx
index 32e9af253e..bd38bc6a38 100644
--- a/ui/storybook/stories/recovery/execution-blocker-notice.stories.tsx
+++ b/ui/storybook/stories/recovery/execution-blocker-notice.stories.tsx
@@ -84,7 +84,9 @@ export const SourceReconstruction: Story = {
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
await expect(canvas.getByText("Continue from saved sources")).toBeVisible();
- await expect(canvas.queryByRole("textbox")).not.toBeInTheDocument();
+ for (const input of canvas.queryAllByRole("textbox")) {
+ await expect(input).not.toBeVisible();
+ }
await userEvent.click(canvas.getByText("Continue from saved sources"));
await expect(canvas.getByText("test-audit.patch (4096 bytes)")).toBeVisible();
await expect(canvas.getByRole("button", { name: "Rebuild and continue" })).toBeDisabled();