mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 10:15:04 +00:00
alpha to beta change integration test, rm unused dep
This commit is contained in:
@@ -2,7 +2,7 @@ import { stub } from "../support/mock";
|
|||||||
|
|
||||||
describe("login", () => {
|
describe("login", () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
stub("zitadel.session.v2alpha.SessionService", "CreateSession", {
|
stub("zitadel.session.v2beta.SessionService", "CreateSession", {
|
||||||
data: {
|
data: {
|
||||||
details: {
|
details: {
|
||||||
sequence: 859,
|
sequence: 859,
|
||||||
@@ -16,7 +16,7 @@ describe("login", () => {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
stub("zitadel.session.v2alpha.SessionService", "GetSession", {
|
stub("zitadel.session.v2beta.SessionService", "GetSession", {
|
||||||
data: {
|
data: {
|
||||||
session: {
|
session: {
|
||||||
id: "221394658884845598",
|
id: "221394658884845598",
|
||||||
@@ -37,7 +37,7 @@ describe("login", () => {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
stub("zitadel.settings.v2alpha.SettingsService", "GetLoginSettings", {
|
stub("zitadel.settings.v2beta.SettingsService", "GetLoginSettings", {
|
||||||
data: {
|
data: {
|
||||||
settings: {
|
settings: {
|
||||||
passkeysType: 1,
|
passkeysType: 1,
|
||||||
@@ -47,15 +47,11 @@ describe("login", () => {
|
|||||||
});
|
});
|
||||||
describe("password login", () => {
|
describe("password login", () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
stub(
|
stub("zitadel.user.v2beta.UserService", "ListAuthenticationMethodTypes", {
|
||||||
"zitadel.user.v2alpha.UserService",
|
data: {
|
||||||
"ListAuthenticationMethodTypes",
|
authMethodTypes: [1], // 1 for password authentication
|
||||||
{
|
},
|
||||||
data: {
|
});
|
||||||
authMethodTypes: [1], // 1 for password authentication
|
|
||||||
},
|
|
||||||
}
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
it("should redirect a user with password authentication to /password", () => {
|
it("should redirect a user with password authentication to /password", () => {
|
||||||
cy.visit("/loginname?loginName=john%40zitadel.com&submit=true");
|
cy.visit("/loginname?loginName=john%40zitadel.com&submit=true");
|
||||||
@@ -63,7 +59,7 @@ describe("login", () => {
|
|||||||
});
|
});
|
||||||
describe("with passkey prompt", () => {
|
describe("with passkey prompt", () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
stub("zitadel.session.v2alpha.SessionService", "SetSession", {
|
stub("zitadel.session.v2beta.SessionService", "SetSession", {
|
||||||
data: {
|
data: {
|
||||||
details: {
|
details: {
|
||||||
sequence: 859,
|
sequence: 859,
|
||||||
@@ -90,15 +86,11 @@ describe("login", () => {
|
|||||||
});
|
});
|
||||||
describe("passkey login", () => {
|
describe("passkey login", () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
stub(
|
stub("zitadel.user.v2beta.UserService", "ListAuthenticationMethodTypes", {
|
||||||
"zitadel.user.v2alpha.UserService",
|
data: {
|
||||||
"ListAuthenticationMethodTypes",
|
authMethodTypes: [2], // 2 for passwordless authentication
|
||||||
{
|
},
|
||||||
data: {
|
});
|
||||||
authMethodTypes: [2], // 2 for passwordless authentication
|
|
||||||
},
|
|
||||||
}
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
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=john%40zitadel.com&submit=true");
|
cy.visit("/loginname?loginName=john%40zitadel.com&submit=true");
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ const IDP_URL = "https://example.com/idp/url";
|
|||||||
|
|
||||||
describe("register idps", () => {
|
describe("register idps", () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
stub("zitadel.user.v2alpha.UserService", "StartIdentityProviderIntent", {
|
stub("zitadel.user.v2beta.UserService", "StartIdentityProviderIntent", {
|
||||||
data: {
|
data: {
|
||||||
authUrl: IDP_URL,
|
authUrl: IDP_URL,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { stub } from "../support/mock";
|
|||||||
|
|
||||||
describe("register", () => {
|
describe("register", () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
stub("zitadel.user.v2alpha.UserService", "AddHumanUser", {
|
stub("zitadel.user.v2beta.UserService", "AddHumanUser", {
|
||||||
data: {
|
data: {
|
||||||
userId: "123",
|
userId: "123",
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -2,12 +2,12 @@ import { stub } from "../support/mock";
|
|||||||
|
|
||||||
describe("/verify", () => {
|
describe("/verify", () => {
|
||||||
it("redirects after successful email verification", () => {
|
it("redirects after successful email verification", () => {
|
||||||
stub("zitadel.user.v2alpha.UserService", "VerifyEmail");
|
stub("zitadel.user.v2beta.UserService", "VerifyEmail");
|
||||||
cy.visit("/verify?userID=123&code=abc&submit=true");
|
cy.visit("/verify?userID=123&code=abc&submit=true");
|
||||||
cy.location("pathname", { timeout: 10_000 }).should("eq", "/loginname");
|
cy.location("pathname", { timeout: 10_000 }).should("eq", "/loginname");
|
||||||
});
|
});
|
||||||
it("shows an error if validation failed", () => {
|
it("shows an error if validation failed", () => {
|
||||||
stub("zitadel.user.v2alpha.UserService", "VerifyEmail", {
|
stub("zitadel.user.v2beta.UserService", "VerifyEmail", {
|
||||||
code: 3,
|
code: 3,
|
||||||
error: "error validating code",
|
error: "error validating code",
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"service": "zitadel.settings.v2alpha.SettingsService",
|
"service": "zitadel.settings.v2beta.SettingsService",
|
||||||
"method": "GetBrandingSettings",
|
"method": "GetBrandingSettings",
|
||||||
"out": {}
|
"out": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"service": "zitadel.settings.v2alpha.SettingsService",
|
"service": "zitadel.settings.v2beta.SettingsService",
|
||||||
"method": "GetLegalAndSupportSettings",
|
"method": "GetLegalAndSupportSettings",
|
||||||
"out": {
|
"out": {
|
||||||
"data": {
|
"data": {
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"service": "zitadel.settings.v2alpha.SettingsService",
|
"service": "zitadel.settings.v2beta.SettingsService",
|
||||||
"method": "GetActiveIdentityProviders",
|
"method": "GetActiveIdentityProviders",
|
||||||
"out": {
|
"out": {
|
||||||
"data": {
|
"data": {
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"service": "zitadel.settings.v2alpha.SettingsService",
|
"service": "zitadel.settings.v2beta.SettingsService",
|
||||||
"method": "GetPasswordComplexitySettings",
|
"method": "GetPasswordComplexitySettings",
|
||||||
"out": {
|
"out": {
|
||||||
"data": {
|
"data": {
|
||||||
@@ -40,7 +40,6 @@
|
|||||||
"@zitadel/react": "workspace:*",
|
"@zitadel/react": "workspace:*",
|
||||||
"@zitadel/server": "workspace:*",
|
"@zitadel/server": "workspace:*",
|
||||||
"clsx": "1.2.1",
|
"clsx": "1.2.1",
|
||||||
"date-fns": "2.29.3",
|
|
||||||
"moment": "^2.29.4",
|
"moment": "^2.29.4",
|
||||||
"next": "13.4.12",
|
"next": "13.4.12",
|
||||||
"next-themes": "^0.2.1",
|
"next-themes": "^0.2.1",
|
||||||
|
|||||||
569
pnpm-lock.yaml
generated
569
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user