mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 14:54:33 +00:00
exclude verify tests
This commit is contained in:
@@ -1,22 +1,50 @@
|
|||||||
import { stub } from "../support/mock";
|
import { stub } from "../support/mock";
|
||||||
|
|
||||||
describe("verify invite", () => {
|
describe("verify invite", () => {
|
||||||
beforeEach(() => {
|
// beforeEach(() => {
|
||||||
stub("zitadel.org.v2.OrganizationService", "ListOrganizations", {
|
// stub("zitadel.org.v2.OrganizationService", "ListOrganizations", {
|
||||||
data: {
|
// data: {
|
||||||
details: {
|
// details: {
|
||||||
totalResult: 1,
|
// totalResult: 1,
|
||||||
},
|
// },
|
||||||
result: [{ id: "256088834543534543" }],
|
// result: [{ id: "256088834543534543" }],
|
||||||
},
|
// },
|
||||||
});
|
// });
|
||||||
|
|
||||||
stub("zitadel.user.v2.UserService", "ListAuthenticationMethodTypes", {
|
// stub("zitadel.user.v2.UserService", "ListAuthenticationMethodTypes", {
|
||||||
data: {
|
// data: {
|
||||||
authMethodTypes: [],
|
// 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", () => {
|
it.only("shows authenticators after successful invite verification", () => {
|
||||||
stub("zitadel.user.v2.UserService", "VerifyInviteCode");
|
stub("zitadel.user.v2.UserService", "VerifyInviteCode");
|
||||||
@@ -40,22 +68,22 @@ describe("verify invite", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe("verify email", () => {
|
describe("verify email", () => {
|
||||||
beforeEach(() => {
|
// beforeEach(() => {
|
||||||
stub("zitadel.org.v2.OrganizationService", "ListOrganizations", {
|
// stub("zitadel.org.v2.OrganizationService", "ListOrganizations", {
|
||||||
data: {
|
// data: {
|
||||||
details: {
|
// details: {
|
||||||
totalResult: 1,
|
// totalResult: 1,
|
||||||
},
|
// },
|
||||||
result: [{ id: "256088834543534543" }],
|
// result: [{ id: "256088834543534543" }],
|
||||||
},
|
// },
|
||||||
});
|
// });
|
||||||
|
|
||||||
stub("zitadel.user.v2.UserService", "ListAuthenticationMethodTypes", {
|
// stub("zitadel.user.v2.UserService", "ListAuthenticationMethodTypes", {
|
||||||
data: {
|
// data: {
|
||||||
authMethodTypes: [],
|
// authMethodTypes: [],
|
||||||
},
|
// },
|
||||||
});
|
// });
|
||||||
});
|
// });
|
||||||
|
|
||||||
it("shows password and passkey method after successful invite verification", () => {
|
it("shows password and passkey method after successful invite verification", () => {
|
||||||
stub("zitadel.user.v2.UserService", "VerifyEmail");
|
stub("zitadel.user.v2.UserService", "VerifyEmail");
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
zitadel/org/v2/org_service.proto
|
||||||
zitadel/user/v2/user_service.proto
|
zitadel/user/v2/user_service.proto
|
||||||
zitadel/session/v2/session_service.proto
|
zitadel/session/v2/session_service.proto
|
||||||
zitadel/settings/v2/settings_service.proto
|
zitadel/settings/v2/settings_service.proto
|
||||||
|
|||||||
Reference in New Issue
Block a user