- Notifications
You must be signed in to change notification settings - Fork927
test(site): add e2e tests for user auth#12971
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
10 commits Select commitHold shift + click to select a range
603964f
refactor
mtojek4e6a973
need to fix object array
mtojek45c3131
fix
mtojekfbc70a6
fmt
mtojekec060bb
oidc-auth-url-params
mtojekad4f370
WIP
mtojek069518a
expect
mtojekf1d8073
ok
mtojek60b2d66
fmt
mtojeka0d9055
comments
mtojekFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
66 changes: 66 additions & 0 deletionssite/e2e/api.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletionssite/e2e/playwright.config.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
51 changes: 4 additions & 47 deletionssite/e2e/tests/deployment/security.spec.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletionssite/e2e/tests/deployment/userAuth.spec.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { test } from "@playwright/test"; | ||
import { getDeploymentConfig } from "api/api"; | ||
import { setupApiCalls, verifyConfigFlag } from "../../api"; | ||
test("login with OIDC", async ({ page }) => { | ||
await setupApiCalls(page); | ||
const config = await getDeploymentConfig(); | ||
await page.goto("/deployment/userauth", { waitUntil: "domcontentloaded" }); | ||
const flags = [ | ||
"oidc-group-auto-create", | ||
"oidc-allow-signups", | ||
"oidc-auth-url-params", | ||
"oidc-client-id", | ||
"oidc-email-domain", | ||
"oidc-email-field", | ||
"oidc-group-mapping", | ||
"oidc-ignore-email-verified", | ||
"oidc-ignore-userinfo", | ||
"oidc-issuer-url", | ||
"oidc-group-regex-filter", | ||
"oidc-scopes", | ||
"oidc-user-role-mapping", | ||
"oidc-username-field", | ||
"oidc-sign-in-text", | ||
"oidc-icon-url", | ||
]; | ||
for (const flag of flags) { | ||
await verifyConfigFlag(page, config, flag); | ||
} | ||
}); |
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.