partey_workadventure/tests
2022-02-18 14:40:20 +01:00
..
tests add playwright and run e2e tests on production like environment 2022-02-18 14:40:20 +01:00
.gitignore add playwright and run e2e tests on production like environment 2022-02-18 14:40:20 +01:00
Dockerfile Update testcafe 2022-01-19 21:15:36 +01:00
package-lock.json add playwright and run e2e tests on production like environment 2022-02-18 14:40:20 +01:00
package.json add playwright and run e2e tests on production like environment 2022-02-18 14:40:20 +01:00
playwright.config.ts add playwright and run e2e tests on production like environment 2022-02-18 14:40:20 +01:00
README.md Fixing doc 2021-12-24 16:45:51 +01:00

End-to-end tests

This directory contains automated end to end tests.

To run them locally:

$ npm install
$ ADMIN_API_TOKEN=123 npm test

You'll need to adapt the ADMIN_API_TOKEN to the value you use in your .env file.

Alternatively, you can use docker-compose to run the tests:

$ PROJECT_DIR=$(pwd) docker-compose -f docker-compose.testcafe.yml up --exit-code-from testcafe

Note: by default, tests are running in Chrome locally and in Chromium in the Docker image.