exclude verify tests

This commit is contained in:
Max Peintner
2024-10-29 09:06:34 +01:00
parent 4ccf0de4b6
commit 402d15b0cb
2 changed files with 59 additions and 30 deletions

View File

@@ -1,22 +1,50 @@
import { stub } from "../support/mock";
describe("verify invite", () => {
beforeEach(() => {
stub("zitadel.org.v2.OrganizationService", "ListOrganizations", {
data: {
details: {
totalResult: 1,
},
result: [{ id: "256088834543534543" }],
},
});
// beforeEach(() => {
// stub("zitadel.org.v2.OrganizationService", "ListOrganizations", {
// data: {
// details: {
// totalResult: 1,
// },
// result: [{ id: "256088834543534543" }],
// },
// });
stub("zitadel.user.v2.UserService", "ListAuthenticationMethodTypes", {
data: {
authMethodTypes: [],
},
});
});
// stub("zitadel.user.v2.UserService", "ListAuthenticationMethodTypes", {
// data: {
// authMethodTypes: [],
// },
// });
// stub("zitadel.user.v2.UserService", "GetUserById", {
// data: {
// user: {
// userId: "221394658884845598",
// state: 1,
// username: "john@zitadel.com",
// loginNames: ["john@zitadel.com"],
// preferredLoginName: "john@zitadel.com",
// human: {
// userId: "221394658884845598",
// state: 1,
// username: "john@zitadel.com",
// loginNames: ["john@zitadel.com"],
// preferredLoginName: "john@zitadel.com",
// profile: {
// givenName: "John",
// familyName: "Doe",
// avatarUrl: "https://zitadel.com/avatar.jpg",
// },
// email: {
// email: "john@zitadel.com",
// isVerified: true,
// },
// },
// },
// },
// });
// });
it.only("shows authenticators after successful invite verification", () => {
stub("zitadel.user.v2.UserService", "VerifyInviteCode");
@@ -40,22 +68,22 @@ describe("verify invite", () => {
});
describe("verify email", () => {
beforeEach(() => {
stub("zitadel.org.v2.OrganizationService", "ListOrganizations", {
data: {
details: {
totalResult: 1,
},
result: [{ id: "256088834543534543" }],
},
});
// beforeEach(() => {
// stub("zitadel.org.v2.OrganizationService", "ListOrganizations", {
// data: {
// details: {
// totalResult: 1,
// },
// result: [{ id: "256088834543534543" }],
// },
// });
stub("zitadel.user.v2.UserService", "ListAuthenticationMethodTypes", {
data: {
authMethodTypes: [],
},
});
});
// stub("zitadel.user.v2.UserService", "ListAuthenticationMethodTypes", {
// data: {
// authMethodTypes: [],
// },
// });
// });
it("shows password and passkey method after successful invite verification", () => {
stub("zitadel.user.v2.UserService", "VerifyEmail");

View File

@@ -1,3 +1,4 @@
zitadel/org/v2/org_service.proto
zitadel/user/v2/user_service.proto
zitadel/session/v2/session_service.proto
zitadel/settings/v2/settings_service.proto