mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-04 23:45:07 +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>
64 lines
1.7 KiB
YAML
64 lines
1.7 KiB
YAML
name: "ZITADEL e2e Tests"
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
test:
|
|
timeout-minutes: 10
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
browser: [firefox, chrome]
|
|
runs-on:
|
|
group: zitadel-public
|
|
steps:
|
|
-
|
|
name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
-
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
path: .artifacts
|
|
name: zitadel-linux-amd64
|
|
-
|
|
name: Unpack executable
|
|
run: |
|
|
tar -xvf .artifacts/zitadel-linux-amd64.tar.gz
|
|
mv zitadel-linux-amd64/zitadel ./zitadel
|
|
-
|
|
name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
-
|
|
name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
with:
|
|
driver-opts: 'image=moby/buildkit:v0.11.6'
|
|
-
|
|
name: Start DB and ZITADEL
|
|
run: |
|
|
cd ./e2e
|
|
ZITADEL_IMAGE=zitadel:local docker compose up --detach --wait
|
|
-
|
|
name: Cypress run
|
|
uses: cypress-io/github-action@v6
|
|
env:
|
|
CYPRESS_BASE_URL: http://localhost:8080/ui/console
|
|
CYPRESS_WEBHOOK_HANDLER_HOST: host.docker.internal
|
|
CYPRESS_DATABASE_CONNECTION_URL: 'postgresql://root@localhost:26257/zitadel'
|
|
CYPRESS_BACKEND_URL: http://localhost:8080
|
|
with:
|
|
working-directory: e2e
|
|
browser: ${{ matrix.browser }}
|
|
config-file: cypress.config.ts
|
|
-
|
|
uses: actions/upload-artifact@v4
|
|
if: always()
|
|
with:
|
|
name: production-tests-${{ matrix.browser }}
|
|
path: |
|
|
e2e/cypress/screenshots
|
|
e2e/cypress/videos
|
|
e2e/cypress/results
|
|
retention-days: 30
|