Skip to content

Commit

Permalink
docs(e2e): add tests documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Falinor committed Jul 1, 2024
1 parent 10d9d73 commit ed74a13
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .talismanrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ fileignoreconfig:
- filename: database/*
- filename: e2e/.env.example
checksum: 7afa05e3b64d40c9351b2a60f4ae70887b9c44d66b152c67f7d53b3d4956c93c
- filename: e2e/README.md
checksum: 5f1410c6dd14683c4cb1185cfa8ef4a6018f587abc11b95ea23febcd203d3dee
- filename: e2e/cypress/e2e/log-in.cy.ts
checksum: 5bae716e922600e1360d1b732cd4f0983b2deb3d012ca3bfbf450a4dac02f583
- filename: e2e/cypress/support/commands.ts
Expand Down
10 changes: 10 additions & 0 deletions e2e/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,13 @@ Copy the .env.example to .env and fill in the required values.
Run `yarn workspace @zerologementvacant/e2e dev` to open the cypress GUI.
Run `yarn workspace @zerologementvacant/e2e test` to run the tests in headless
mode.

## Running in CI

`E2E_EMAIL` and `E2E_PASSWORD` must be set on the API where you want to run the
tests.
The API seeds a specific environment for the end-to-end tests with variables
defined on [our cloud provider](https://console.clever-cloud.com/organisations/orga_31f13631-abb3-48d2-a58b-24b736f02a9d/applications/app_be5bb031-0ce0-4ce1-ac71-c5434691dcb6/variables).

GitHub CI runs the headless tests, thus the variables defined in [.env.example](./.env.example) must be defined in the CI environment.
The _staging_ environment variables and secrets are defined [on GitHub](https://github.com/MTES-MCT/zero-logement-vacant/settings/environments/3313774599/edit).

0 comments on commit ed74a13

Please sign in to comment.