Skip to content

Commit b8f7a05

Browse files
committed
Fix story
1 parent 2d67dfa commit b8f7a05

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

site/src/pages/GroupsPage/GroupPage.stories.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ export const MembersError: Story = {
9999
},
100100
play: async ({ canvasElement }) => {
101101
const canvas = within(canvasElement);
102-
await userEvent.click(canvas.getByRole("button", { name: "Open" }));
102+
const combobox = await canvas.findByRole("combobox");
103+
await userEvent.click(combobox);
103104
},
104105
};
105106

@@ -116,7 +117,8 @@ export const NoMembers: Story = {
116117
},
117118
play: async ({ canvasElement }) => {
118119
const canvas = within(canvasElement);
119-
await userEvent.click(canvas.getByRole("button", { name: "Open" }));
120+
const combobox = await canvas.findByRole("combobox");
121+
await userEvent.click(combobox);
120122
},
121123
};
122124

0 commit comments

Comments
 (0)