End2End Tests for some of my webpages
npm install
npm run cypress:install
# show test runner in window
npm run cypress:open
# run all tests in the cli
npm run cypress:run
If you are running the tests in the cli you will get videos of the runs in cypress/videos
.
You can create new *.spec.js
files in sub-folders (project name) of cypress/integration
.
In Google Chrome / Chromium you can right click on an element in the dev tools and do a Copy JS path
(Firefox can't do that).
# Open cypress in the Steam Runner
steam-run npx cypress open
# Or if steam-run is not installed
NIXPKGS_ALLOW_UNFREE=1 nix-shell -p steam-run --run "steam-run npx cypress open"