integration

This commit is contained in:
peintnermax
2023-08-31 10:04:05 +02:00
parent 07300198b9
commit decfdca011

View File

@@ -59,7 +59,7 @@ describe("login", () => {
); );
}); });
it("should redirect a user with password authentication to /password", () => { it("should redirect a user with password authentication to /password", () => {
cy.visit("/loginname?loginName=johndoe%40zitadel.com&submit=true"); cy.visit("/loginname?loginName=john%40zitadel.com&submit=true");
cy.location("pathname", { timeout: 10_000 }).should("eq", "/password"); cy.location("pathname", { timeout: 10_000 }).should("eq", "/password");
}); });
describe("with passkey prompt", () => { describe("with passkey prompt", () => {
@@ -102,7 +102,7 @@ describe("login", () => {
); );
}); });
it("should redirect a user with passwordless authentication to /passkey/login", () => { it("should redirect a user with passwordless authentication to /passkey/login", () => {
cy.visit("/loginname?loginName=johndoe%40zitadel.com&submit=true"); cy.visit("/loginname?loginName=john%40zitadel.com&submit=true");
cy.location("pathname", { timeout: 10_000 }).should( cy.location("pathname", { timeout: 10_000 }).should(
"eq", "eq",
"/passkey/login" "/passkey/login"