2021-11-23 15:42:52 +01:00
|
|
|
End-to-end tests
|
|
|
|
|
|
|
|
This directory contains automated end to end tests.
|
|
|
|
|
|
|
|
To run them locally:
|
|
|
|
|
|
|
|
```console
|
|
|
|
$ npm install
|
2021-12-23 11:46:39 +01:00
|
|
|
$ ADMIN_API_TOKEN=123 npm test
|
2021-11-23 15:42:52 +01:00
|
|
|
```
|
|
|
|
|
2021-12-23 11:46:39 +01:00
|
|
|
You'll need to adapt the `ADMIN_API_TOKEN` to the value you use in your `.env` file.
|
|
|
|
|
2021-11-23 15:42:52 +01:00
|
|
|
Alternatively, you can use docker-compose to run the tests:
|
|
|
|
|
|
|
|
```console
|
2021-12-24 16:45:51 +01:00
|
|
|
$ PROJECT_DIR=$(pwd) docker-compose -f docker-compose.testcafe.yml up --exit-code-from testcafe
|
2021-11-23 15:42:52 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
Note: by default, tests are running in Chrome locally and in Chromium in the Docker image.
|