Showcase end-to-end tests using a TestCafe library and JavaScript.
- Node v16.16.0 - install it from here
- Yarn 1.22.19+ - install it from here
- TestCafe 2.4.0 - find documentation here
In the project root folder, to install dependencies run:
yarn
Start a new local web service to run tests on (it will take few minutes to start up):
docker run --rm --privileged --name web-service -p 8080:8080 -it quay.io/evooq/qa-challenge:latest
As an alternative, you can run tests against the stage environment by providing a URL:
export SITE_URL=<site_url>
To run/debug tests locally with Chrome, in the project root folder run:
yarn test-local