Skip to content

Commit 48db46c

Browse files
committed
Fix js unit tests
1 parent a2510a2 commit 48db46c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

site/src/components/SignInForm/SignInForm.stories.tsx

+6
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ SigningIn.args = {
2828
...SignedOut.args,
2929
isSigningIn: true,
3030
authMethods: {
31+
convert_to_oidc_enabled: false,
3132
password: { enabled: true },
3233
github: { enabled: true },
3334
oidc: { enabled: false, signInText: "", iconUrl: "" },
@@ -55,6 +56,7 @@ export const WithGithub = Template.bind({})
5556
WithGithub.args = {
5657
...SignedOut.args,
5758
authMethods: {
59+
convert_to_oidc_enabled: false,
5860
password: { enabled: true },
5961
github: { enabled: true },
6062
oidc: { enabled: false, signInText: "", iconUrl: "" },
@@ -65,6 +67,7 @@ export const WithOIDC = Template.bind({})
6567
WithOIDC.args = {
6668
...SignedOut.args,
6769
authMethods: {
70+
convert_to_oidc_enabled: false,
6871
password: { enabled: true },
6972
github: { enabled: false },
7073
oidc: { enabled: true, signInText: "", iconUrl: "" },
@@ -75,6 +78,7 @@ export const WithOIDCWithoutPassword = Template.bind({})
7578
WithOIDCWithoutPassword.args = {
7679
...SignedOut.args,
7780
authMethods: {
81+
convert_to_oidc_enabled: false,
7882
password: { enabled: false },
7983
github: { enabled: false },
8084
oidc: { enabled: true, signInText: "", iconUrl: "" },
@@ -85,6 +89,7 @@ export const WithoutAny = Template.bind({})
8589
WithoutAny.args = {
8690
...SignedOut.args,
8791
authMethods: {
92+
convert_to_oidc_enabled: false,
8893
password: { enabled: false },
8994
github: { enabled: false },
9095
oidc: { enabled: false, signInText: "", iconUrl: "" },
@@ -95,6 +100,7 @@ export const WithGithubAndOIDC = Template.bind({})
95100
WithGithubAndOIDC.args = {
96101
...SignedOut.args,
97102
authMethods: {
103+
convert_to_oidc_enabled: false,
98104
password: { enabled: true },
99105
github: { enabled: true },
100106
oidc: { enabled: true, signInText: "", iconUrl: "" },

site/src/pages/LoginPage/LoginPage.test.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ describe("LoginPage", () => {
6161

6262
it("shows github authentication when enabled", async () => {
6363
const authMethods: TypesGen.AuthMethods = {
64+
convert_to_oidc_enabled: false,
6465
password: { enabled: true },
6566
github: { enabled: true },
6667
oidc: { enabled: true, signInText: "", iconUrl: "" },
@@ -112,6 +113,7 @@ describe("LoginPage", () => {
112113

113114
it("hides password authentication if OIDC/GitHub is enabled and displays on click", async () => {
114115
const authMethods: TypesGen.AuthMethods = {
116+
convert_to_oidc_enabled: false,
115117
password: { enabled: true },
116118
github: { enabled: true },
117119
oidc: { enabled: true, signInText: "", iconUrl: "" },

0 commit comments

Comments
 (0)