Setup:
npm installcp .env.example .env- Edit the new
.envfile. SetSITE_TEST_BASE_URLto your target url.
Use nightwatch for writing functional tests.
npm run test:nightwatch
Create new tests in the tests/nightwatch folder. They will be picked up automatically.
Create new commands (methods that get attached to the browser object) in the commands folder. They will get picked up automatically.
Use lighthouse for performance testing.
npm run test:lighthouse