add test flows for login ui

This commit is contained in:
Fabienne
2024-11-18 09:30:23 +01:00
parent 7e4285b0bd
commit 10c9d64977
4 changed files with 194 additions and 0 deletions

View File

@@ -24,3 +24,25 @@ test("username and passkey login", async ({user, page}) => {
await loginWithPasskey(page, user.getAuthenticatorId(), user.getUsername())
await loginScreenExpect(page, user.getFullName());
});
test("username and passkey login, if passkey enabled", async ({user, page}) => {
// Given passkey is enabled on the organization of the user
// Given the user has only passkey enabled as authentication
// enter username
// passkey popup is directly shown
// user verifies passkey
// user is redirected to app
});
test("username and passkey login, multiple auth methods", async ({user, page}) => {
// Given passkey and password is enabled on the organization of the user
// Given the user has password and passkey registered
// enter username
// passkey popup is directly shown
// user aborts passkey authentication
// user switches to password authentication
// user enters password
// user is redirected to app
});