partey_workadventure/tests
2022-02-18 16:37:50 +01:00
..
tests update docs and remove references to testcafe 2022-02-18 16:11:26 +01:00
.gitignore add playwright and run e2e tests on production like environment 2022-02-18 14:40:20 +01:00
package-lock.json load ADMIN_API_TOKEN with dotenv-cli 2022-02-18 16:37:50 +01:00
package.json load ADMIN_API_TOKEN with dotenv-cli 2022-02-18 16:37:50 +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 load ADMIN_API_TOKEN with dotenv-cli 2022-02-18 16:37:50 +01:00

End-to-end tests

This directory contains automated end to end tests.

Installation

npm install
npx playwright install --with-deps

Run on development environment

Start WorkAdventure with:

docker-compose up -d

Wait 2-3 minutes for the environment to start, then:

Start the tests with:

npm run test

Run on production like environment

Start WorkAdventure with:

docker-compose -f docker-compose.yaml -f docker-compose.e2e.yml up -d --build

Start the tests with:

npm run test-prod-like

Run selected tests

End-to-end tests can take a while to run. To run only one test in one browser, use:

npm run test -- [name of the test file] --project=[chromium|firefox|webkit]