partey_workadventure/tests
Piotr Hanusiak bb3f52df37
New select woka scene (#1997)
* animated grid tiles
* change woka's category with arrow buttons
* added some dynamic effects to woka's list
* add some drag distance treshold
* do not show arrows if only one collection
* WSAD and arrow keys movement through WOKA models
* Adapting end to end tests

Co-authored-by: Piotr 'pwh' Hanusiak <p.hanusiak@workadventu.re>
Co-authored-by: David Négrier <d.negrier@thecodingmachine.com>
2022-04-22 17:56:28 +02:00
..
tests New select woka scene (#1997) 2022-04-22 17:56:28 +02:00
.gitignore Allow audio (#1991) 2022-03-21 16:22:51 +01:00
package-lock.json Merge branch 'master' of github.com:thecodingmachine/workadventure into develop 2022-04-13 15:12:06 +02:00
package.json Upgrading playwright to 1.21 (#2084) 2022-04-13 14:33:30 +02:00
playwright.config.ts add playwright and run e2e tests on production like environment 2022-02-18 14:40:20 +01:00
README.md Multi-platform images (#1924) 2022-03-08 11:21:17 +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

Build message types:

cd messages/
yarn run proto-all

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]