Skip to content

Commit c15266e

Browse files
committed
fix tests
1 parent 7ea3c85 commit c15266e

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

site/src/modules/dashboard/Navbar/NavbarView.stories.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ type Story = StoryObj<typeof NavbarView>;
2626
export const ForAdmin: Story = {
2727
play: async ({ canvasElement }) => {
2828
const canvas = within(canvasElement);
29-
await userEvent.click(canvas.getByRole("button", { name: "Manage" }));
29+
await userEvent.click(
30+
canvas.getByRole("button", { name: "Administration" }),
31+
);
3032
},
3133
};
3234

@@ -41,7 +43,9 @@ export const ForAuditor: Story = {
4143
},
4244
play: async ({ canvasElement }) => {
4345
const canvas = within(canvasElement);
44-
await userEvent.click(canvas.getByRole("button", { name: "Manage" }));
46+
await userEvent.click(
47+
canvas.getByRole("button", { name: "Administration" }),
48+
);
4549
},
4650
};
4751

@@ -56,7 +60,9 @@ export const ForOrgAdmin: Story = {
5660
},
5761
play: async ({ canvasElement }) => {
5862
const canvas = within(canvasElement);
59-
await userEvent.click(canvas.getByRole("button", { name: "Manage" }));
63+
await userEvent.click(
64+
canvas.getByRole("button", { name: "Administration" }),
65+
);
6066
},
6167
};
6268

0 commit comments

Comments
 (0)