Skip to content

Commit 375deac

Browse files
committed
fix: fix storybook tests
1 parent eed8dcc commit 375deac

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

site/src/pages/ManagementSettingsPage/IdpSyncPage/ExportPolicyButton.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const ClickExportGroupPolicy: Story = {
3232
play: async ({ canvasElement, args }) => {
3333
const canvas = within(canvasElement);
3434
await userEvent.click(
35-
canvas.getByRole("button", { name: "Export Policy" }),
35+
canvas.getByRole("button", { name: "Export policy" }),
3636
);
3737
await waitFor(() =>
3838
expect(args.download).toHaveBeenCalledWith(
@@ -58,7 +58,7 @@ export const ClickExportRolePolicy: Story = {
5858
play: async ({ canvasElement, args }) => {
5959
const canvas = within(canvasElement);
6060
await userEvent.click(
61-
canvas.getByRole("button", { name: "Export Policy" }),
61+
canvas.getByRole("button", { name: "Export policy" }),
6262
);
6363
await waitFor(() =>
6464
expect(args.download).toHaveBeenCalledWith(

site/src/pages/ManagementSettingsPage/IdpSyncPage/IdpSyncPageView.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ export const RolesTab: Story = {
8383
play: async ({ canvasElement }) => {
8484
const user = userEvent.setup();
8585
const canvas = within(canvasElement);
86-
const rolesTab = await canvas.findByText("Role Sync Settings");
86+
const rolesTab = await canvas.findByText("Role sync settings");
8787
await user.click(rolesTab);
88-
await expect(canvas.findByText("IdP Role")).resolves.toBeVisible();
88+
await expect(canvas.findByText("IdP role")).resolves.toBeVisible();
8989
},
9090
};

0 commit comments

Comments
 (0)