Files
zitadel/acceptance/tests/username-password-otp_sms.spec.ts

44 lines
1.5 KiB
TypeScript
Raw Normal View History

2024-11-15 14:54:14 +01:00
/*
2024-11-15 13:48:42 +01:00
test("username, password and otp login", async ({ user, page }) => {
//const server = startSink()
await loginWithPassword(page, user.getUsername(), user.getPassword());
2024-11-15 09:29:48 +01:00
2024-11-15 13:48:42 +01:00
await loginScreenExpect(page, user.getFullName());
//server.close()
2024-11-15 09:29:48 +01:00
});
2024-11-18 09:30:23 +01:00
test("username, password and sms otp login", async ({user, page}) => {
// Given sms otp is enabled on the organizaiton of the user
// Given the user has only sms otp configured as second factor
// User enters username
// User enters password
// User receives an sms with a verification code
// User enters the code into the ui
2024-11-18 15:30:29 +01:00
// User is redirected to the app (default redirect url)
2024-11-18 09:30:23 +01:00
});
test("username, password and sms otp login, resend code", async ({user, page}) => {
// Given sms otp is enabled on the organizaiton of the user
// Given the user has only sms otp configured as second factor
// User enters username
// User enters password
// User receives an sms with a verification code
// User clicks resend code
// User receives a new sms with a verification code
2024-11-18 15:30:29 +01:00
// User is redirected to the app (default redirect url)
2024-11-18 09:30:23 +01:00
});
test("username, password and sms otp login, wrong code", async ({user, page}) => {
// Given sms otp is enabled on the organizaiton of the user
// Given the user has only sms otp configured as second factor
// User enters username
// User enters password
// User receives an sms with a verification code
// User enters a wrond code
// Error message - "Invalid code" is shown
});
2024-11-15 15:05:38 +01:00
*/