- Clone repository
cd
into local foldernpm install
- Run
testcafe -s website/screenshots chrome::headless website/tests.js
*Runs testcafe in headless chrome & saves screenshots to folder
testcafe [options] <browser-list-comma-separated> <file>
For more details see testcafe docs.
- Make sure
web
is running - Run
docker run -v $(pwd)/website:/tests -it --link web-dev:target testcafe/testcafe -s tests/screenshots 'firefox' ./tests/tests.js