workadventure/tests
David Négrier 9425fd70c0 Adding a new property to prevent script from being loaded in "modules" mode
Scripts in module mode need to be abide by the Same Origin Policy (CORS headers are used to load them)
This can cause issues on some setups.

This commit adds a new "scriptDisableModuleSupport" that can be used to disable the "modules" mode.

Closes #1721
2022-01-12 17:36:31 +01:00
..
screenshots Adding end-to-end tests 2021-11-23 15:43:34 +01:00
tests Adding a new property to prevent script from being loaded in "modules" mode 2022-01-12 17:36:31 +01:00
.gitignore Adding end-to-end tests 2021-11-23 15:43:34 +01:00
.testcaferc.js increase timeouts (who knows....) 2021-12-06 12:04:04 +01:00
Dockerfile Adding a Docker image to have testcafe + docker-compose 2021-12-03 18:20:32 +01:00
package-lock.json Upgrading testcafe to 1.18.0 2021-12-23 11:46:39 +01:00
package.json Upgrading testcafe to 1.18.0 2021-12-23 11:46:39 +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.