Commit 5a97304
authored
testing: use production environment for e2e tests (#1139)
When using the development environment if a request fails the screen is
blocked by a helpful debugging message.
I believe the `login` request that happens in the background regularly
fails since we updated passport in the platform api. This then blocks
clicking any other elements.
The e2e tests rely on the main branch of api to test against which
explains why we transition into status tests failing without merging a
PR that had failing status tests.
This commit uses the production environment for running the end to end
tests. It also adjusts the npm install step. It retains the development
environment for installation and uses npm ci[1] rather than install to
make this test more deterministic and use the exact versions of packages
specified in the lock file.
Finally this commit also uses a plain docker compose --wait and removes
the -d since wait already implies detached mode. [2]
[1] https://docs.npmjs.com/cli/v11/commands/npm-ci
[2] https://docs.docker.com/reference/cli/docker/compose/up/
Bug: T4283891 parent fbbf689 commit 5a97304
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments