1
0
mirror of https://github.com/zitadel/zitadel.git synced 2024-12-12 19:14:23 +00:00
zitadel/e2e
Elio Bischof fdf0434133
fix(console): remove navigation flakiness ()
# 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  
- 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>
2024-08-22 09:48:36 +02:00
..
config refactor(database): exchange connection pool () 2024-07-17 15:16:02 +00:00
cypress fix(console): remove navigation flakiness () 2024-08-22 09:48:36 +02:00
.gitignore feat(actions): local users () 2023-01-25 13:08:01 +00:00
.prettierignore feat(actions): local users () 2023-01-25 13:08:01 +00:00
.prettierrc.json feat(actions): local users () 2023-01-25 13:08:01 +00:00
cypress.config.ts fix(console): remove navigation flakiness () 2024-08-22 09:48:36 +02:00
docker-compose.yaml chore: improve development for non-Linux contributors () 2023-02-28 17:49:19 +00:00
package.json fix(console): remove navigation flakiness () 2024-08-22 09:48:36 +02:00
README.md ci(e2e): Run Tests in Pipelines () 2022-08-05 20:00:46 +02:00
tsconfig.json docs(contributing): Update contributing guide () 2022-08-26 19:39:15 +02:00
yarn.lock fix(console): remove navigation flakiness () 2024-08-22 09:48:36 +02:00

Run e2e Tests

docker compose run e2e

Cleanup e2e Tests

docker compose down