add more test scenarios

This commit is contained in:
Fabienne
2024-11-18 15:30:29 +01:00
parent 3a22045b36
commit bbc8d05a86
19 changed files with 384 additions and 86 deletions

View File

@@ -32,7 +32,7 @@ test("login with GitHub IDP - auto redirect", async ({user, page}) => {
// User is automatically redirected to GitHub
// User authenticates in GitHub
// User is redirect to ZITADEL login
// User is redirected to the app
// User is redirected to the app (default redirect url)
});
@@ -56,7 +56,7 @@ test("login with GitHub IDP", async ({user, page}) => {
// User is redirected to GitHub
// User authenticates in GitHub and gets an error
// User is redirect to ZITADEL login automatically
// User is redirected to app automatically
// User is redirected to app automatically (default redirect url)
});
@@ -83,7 +83,7 @@ test("login with GitHub IDP, no user existing - auto register", async ({user, pa
// User authenticates in GitHub
// User is redirect to ZITADEL login
// User is created in ZITADEL
// User is redirected to the app
// User is redirected to the app (default redirect url)
});
test("login with GitHub IDP, no user existing - auto register not possible", async ({user, page}) => {
@@ -99,7 +99,7 @@ test("login with GitHub IDP, no user existing - auto register not possible", asy
// User fills missing information
// User clicks register button
// User is created in ZITADEL
// User is redirected to the app
// User is redirected to the app (default redirect url)
});
test("login with GitHub IDP, no user existing - auto register enabled - manual creation disabled, creation not possible", async ({user, page}) => {
@@ -124,7 +124,7 @@ test("login with GitHub IDP, no user linked - auto link", async ({user, page}) =
// User authenticates in GitHub with user@zitadel.com
// User is redirect to ZITADEL login
// User is linked with existing user in ZITADEL
// User is redirected to the app
// User is redirected to the app (default redirect url)
});
test("login with GitHub IDP, no user linked, user doesn't exist - no auto link", async ({user, page}) => {
@@ -152,5 +152,5 @@ test("login with GitHub IDP, no user linked, user doesn't exist - no auto link",
// User is redirect to ZITADEL login
// User with email address user@zitadel.com can not be found
// User is prompted to link the account manually
// User is redirected to the app
// User is redirected to the app (default redirect url)
});