You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 14, 2023. It is now read-only.
Frontend code for the CoderDojo Community Platform (Zen)
4
3
5
4
# Running e2e tests
6
5
7
6
## cypress tests
8
-
9
7
We've begun moving e2e tests to [Cypress](https://www.cypress.io/) in order to improve reliability.
10
8
11
9
### Running with UI
12
-
13
-
To run Cypress tests with the Cypress UI (good for debugging issues), you will first need to run the front end by running `yarn start`, then simply run.
14
-
10
+
To run Cypress tests with the Cypress UI (good for debugging issues), you will first need to run the front end by running `yarn start`, then simply run
15
11
```
16
12
yarn cypress:open
17
13
```
18
14
19
15
This will open a window where you can select what spec to run. Notice that if you have a new version of the translations which is not published yet, tests on strings containing interpolation will fail as they are not depending on the linked version of your own repo. Running it headless will solve that.
20
16
21
17
### Headless
22
-
23
18
You can also run the Cypress tests headless through Docker. You'll first need to install Cypress within the Docker container by running
24
-
25
19
```
26
20
docker-compose run --rm cypress yarn cypress:install
27
21
```
28
22
29
23
Once done, the installed Cypress is kept in a volume so it will persist between runs. If running the tests ever gives out about Cypress not being installed, just run this command again.
30
24
31
25
To run the tests
32
-
33
26
```
34
27
docker-compose run --rm cypress
35
28
```
36
29
37
30
### E2E Tests
38
-
39
31
The tests in the `/cypress/integration_e2e` folder that are not run as part of the main test in CI.
40
32
41
33
They are designed to be run manually & locally with the full stack, no endpoints are stubbed.
@@ -47,10 +39,9 @@ yarn cypress:e2e:open
47
39
```
48
40
49
41
## wdio tests
50
-
51
42
The selenium-based wdio tests are legacy tests, waiting to be migrated to cypress. They are not actively maintained and are there only for reference until migrated.
0 commit comments