mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-14 11:58:02 +00:00
fdf0434133
# Which Problems Are Solved The navigation in the console default settings is flaky. Sometimes it arbitrarily jumps to the organizations page. # How the Problems Are Solved The lifecycle hooks were extended to react differently to changes that come from 'outside' and from the component itself. # Additional Changes The e2e tests are supposed to run against Firefox and Chrome. However they are run twice against Electon. Fixing this revealed the console navigation flakiness that was less visible on Electron. The following issues are also fixed with this PR to reduce flakiness in e2e tests. - The custom command in the pipeline is removed from the e2e action step, so the browser argument is respected. - The npm packages of the e2e tests are updated to their latest version. - Notification tests run against a clean state now so they don't depend on each other anymore. This resolved some flakiness and improved debuggability of the tests. - E2E page load timeout is increased, reducing flakiness. - E2E tests wait on some elements to be enabled before they interact with them, reducing flakiness. # Additional Context - Closes #8404 - Follow-up: https://github.com/zitadel/zitadel/issues/8471 The e2e tests ran three times in a row successfully in the pipeline against both browsers. --------- Co-authored-by: Max Peintner <max@caos.ch> Co-authored-by: Livio Spring <livio.a@gmail.com> Co-authored-by: Tim Möhlmann <tim+github@zitadel.com>
35 lines
1.3 KiB
JSON
35 lines
1.3 KiB
JSON
{
|
|
"name": "zitadel-e2e",
|
|
"version": "0.0.0",
|
|
"scripts": {
|
|
"open": "npx cypress open",
|
|
"e2e": "npx cypress run",
|
|
"open:golang": "npm run open --",
|
|
"e2e:golang": "npm run e2e --",
|
|
"open:golangangular": "CYPRESS_BASE_URL=http://localhost:4200 CYPRESS_BACKEND_URL=http://localhost:8080 npm run open --",
|
|
"e2e:golangangular": "CYPRESS_BASE_URL=http://localhost:4200 CYPRESS_BACKEND_URL=http://localhost:8080 npm run e2e --",
|
|
"open:angulargolang": "npm run open:golangangular --",
|
|
"e2e:angulargolang": "npm run e2e:golangangular --",
|
|
"open:angular": "CYPRESS_BASE_URL=http://localhost:4200 CYPRESS_BACKEND_URL=http://localhost:8080 CYPRESS_WEBHOOK_HANDLER_HOST=host.docker.internal npm run open --",
|
|
"e2e:angular": "CYPRESS_BASE_URL=http://localhost:4200 CYPRESS_BACKEND_URL=http://localhost:8080 CYPRESS_WEBHOOK_HANDLER_HOST=host.docker.internal npm run e2e --",
|
|
"lint": "prettier --check cypress",
|
|
"lint:fix": "prettier --write cypress"
|
|
},
|
|
"private": true,
|
|
"dependencies": {
|
|
"@types/pg": "^8.11.6",
|
|
"cypress-wait-until": "^3.0.2",
|
|
"jsonwebtoken": "^9.0.2",
|
|
"mochawesome": "^7.1.3",
|
|
"pg": "^8.12.0",
|
|
"prettier": "^3.3.3",
|
|
"typescript": "^5.5.4",
|
|
"uuid": "^10.0.0",
|
|
"wait-on": "^7.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.3.0",
|
|
"cypress": "^13.13.3"
|
|
}
|
|
}
|