Skip to content

Commit

Permalink
add brief instructions on how to run e2e tests locally
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaskikutis committed Nov 6, 2024
1 parent 63468fd commit 8e5bb73
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions e2e/RUNNING_LOCALLY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
To run e2e tests locally:

1. start grunt in e2e folder - `npx grunt server`
2. edit Procfile, remove the web task (it is for serving a static bundle which we don't want in order not to lose live-reload support)
3. start mongo, redis, elastic services
4. create a virtual environment in e2e/server, install dependencies and start honcho
5. run `TZ="Australia/Sydney" npm run cypress-ui` in `e2e` folder. Notice we set a timezone environment variable before launching cypress. Some tests depend on a timezone and would fail it timezone wasn't set.

0 comments on commit 8e5bb73

Please sign in to comment.