Skip to content

Commit 2a5d2b5

Browse files
committed
fix: update stories
1 parent 66152e4 commit 2a5d2b5

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
MockGroupSyncSettings,
66
MockGroupSyncSettings2,
77
MockRoleSyncSettings,
8+
MockOrganization,
89
} from "testHelpers/entities";
910
import { IdpSyncPageView } from "./IdpSyncPageView";
1011

@@ -22,11 +23,23 @@ for (const group of [MockGroup, MockGroup2]) {
2223
groupsMap.set(group.id, group.display_name || group.name);
2324
}
2425

26+
export const NotEnabled: Story = {
27+
args: {
28+
groupSyncSettings: undefined,
29+
roleSyncSettings: undefined,
30+
groupsMap: undefined,
31+
organization: MockOrganization,
32+
isIdpSyncEnabled: false,
33+
},
34+
};
35+
2536
export const Empty: Story = {
2637
args: {
2738
groupSyncSettings: undefined,
2839
roleSyncSettings: undefined,
2940
groupsMap: undefined,
41+
organization: MockOrganization,
42+
isIdpSyncEnabled: true,
3043
},
3144
};
3245

@@ -35,6 +48,8 @@ export const Default: Story = {
3548
groupSyncSettings: MockGroupSyncSettings,
3649
roleSyncSettings: MockRoleSyncSettings,
3750
groupsMap,
51+
organization: MockOrganization,
52+
isIdpSyncEnabled: true,
3853
},
3954
};
4055

@@ -43,5 +58,7 @@ export const MissingGroups: Story = {
4358
groupSyncSettings: MockGroupSyncSettings2,
4459
roleSyncSettings: MockRoleSyncSettings,
4560
groupsMap,
61+
organization: MockOrganization,
62+
isIdpSyncEnabled: true,
4663
},
4764
};

0 commit comments

Comments
 (0)