diff --git a/apps/login/cypress/integration/login.cy.ts b/apps/login/cypress/integration/login.cy.ts index 21d4a59f3d3..9731a4e8316 100644 --- a/apps/login/cypress/integration/login.cy.ts +++ b/apps/login/cypress/integration/login.cy.ts @@ -52,6 +52,36 @@ describe("login", () => { authMethodTypes: [1], // 1 for password authentication }, }); + + stub("zitadel.user.v2beta.UserService", "ListUsers", { + data: { + result: [ + { + userId: "1231231231", + state: 1, + username: "max", + loginNames: ["max"], + preferredLoginName: "max", + human: { + userId: "123123123", + state: 1, + username: "max", + loginNames: ["max"], + preferredLoginName: "max", + profile: { + givenName: "Max", + familyName: "Mustermann", + avatarUrl: "https://zitadel.com/avatar.jpg", + }, + email: { + email: "string", + isVerified: true, + }, + }, + }, + ], + }, + }); }); it("should redirect a user with password authentication to /password", () => { cy.visit("/loginname?loginName=john%40zitadel.com&submit=true");