We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 300198b commit 5fb24deCopy full SHA for 5fb24de
src/browser/components/ProjectCreateModal.stories.tsx
@@ -415,8 +415,9 @@ export const CancelDirectoryPicker: Story = {
415
expect(canvas.getByText("Select Project Directory")).toBeInTheDocument();
416
});
417
418
- // Click Cancel
419
- await userEvent.click(canvas.getByText("Cancel"));
+ // Click Cancel in the directory picker (the second/last Cancel button visible)
+ const cancelButtons = canvas.getAllByRole("button", { name: "Cancel" });
420
+ await userEvent.click(cancelButtons[cancelButtons.length - 1]);
421
422
// DirectoryPickerModal should close but main modal stays open
423
await waitFor(() => {
0 commit comments