mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-23 14:57:46 +00:00
fix invite tests, convenience command
This commit is contained in:
@@ -38,7 +38,7 @@ describe("verify invite", () => {
|
||||
},
|
||||
email: {
|
||||
email: "john@zitadel.com",
|
||||
isVerified: true, // email needs to be verified
|
||||
isVerified: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -79,6 +79,15 @@ describe("verify invite", () => {
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
stub("zitadel.settings.v2.SettingsService", "GetLoginSettings", {
|
||||
data: {
|
||||
settings: {
|
||||
passkeysType: 1,
|
||||
allowUsernamePassword: true,
|
||||
},
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
it.only("shows authenticators after successful invite verification", () => {
|
||||
|
@@ -3,13 +3,7 @@
|
||||
"service": "zitadel.settings.v2.SettingsService",
|
||||
"method": "GetBrandingSettings",
|
||||
"out": {
|
||||
"data": {
|
||||
"settings": {
|
||||
"darkTheme": {
|
||||
"backgroundColor": "#ff0000"
|
||||
}
|
||||
}
|
||||
}
|
||||
"data": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@@ -12,6 +12,7 @@
|
||||
"test:integration:watch": "concurrently --names 'mock,test' --kill-others 'pnpm:mock' 'env-cmd -f ./.env.integration start-server-and-test dev http://localhost:3000 \"pnpm nodemon -e js,jsx,ts,tsx,css,scss --ignore \\\"__test__/**\\\" --exec \\\"pnpm test:integration:run\\\"\"'",
|
||||
"test:integration:run": "cypress run --config-file ./cypress/cypress.config.ts --quiet",
|
||||
"test:integration:open": "cypress open --config-file ./cypress/cypress.config.ts",
|
||||
"test:integration:runall": "concurrently --names 'mock,test' --kill-others 'pnpm:mock' 'env-cmd -f ./.env.integration start-server-and-test dev http://localhost:3000 \"pnpm nodemon -e js,jsx,ts,tsx,css,scss --ignore \\\"__test__/**\\\" --exec \\\"pnpm test:integration:open\\\"\"'",
|
||||
"mock": "pnpm mock:build && pnpm mock:run",
|
||||
"mock:run": "pnpm mock:stop && docker run --rm --name zitadel-mock-grpc-server --publish 22220:22220 --publish 22222:22222 zitadel-mock-grpc-server",
|
||||
"mock:build": "DOCKER_BUILDKIT=1 docker build --tag zitadel-mock-grpc-server ./mock",
|
||||
|
@@ -51,8 +51,8 @@ export function VerifyRedirectButton({
|
||||
}
|
||||
|
||||
await sendVerificationRedirectWithoutCheck(command)
|
||||
.catch((error) => {
|
||||
setError("Could not verify user");
|
||||
.catch(() => {
|
||||
setError("Could not verify");
|
||||
return;
|
||||
})
|
||||
.finally(() => {
|
||||
|
@@ -40,7 +40,7 @@ export async function sendVerification(command: VerifyUserByEmailCommand) {
|
||||
});
|
||||
|
||||
if (!verifyResponse) {
|
||||
return { error: "Could not verify user" };
|
||||
return { error: "Could not verify" };
|
||||
}
|
||||
|
||||
let session: Session | undefined;
|
||||
|
Reference in New Issue
Block a user