The step definitions are available for every feature. Every step definition can be found under cypress/support/step_definitions.
This test contains a working Gitlab CI configuration
- Git
- Node.js 12.x LTS: Install Node.js on your local machine.
- Setup an enrivonment variable given in the env.example
Run via npm install and npm test:
npm i
and
npm run test
// Using tags
npm run test -- --env TAGS='@yourTag'
You can add a @skip tag to you test, if something is temporarily failing. Once the test is passing, Cucumber will exit with a status code 1 to let us know, that the tests are not work in progress anymore.
npm run test -- --env TAGS='not @skip'
npm run cypress:open
Inside the Cypress dashboard, choose the browser.
For the terminal:
"cypress:chrome": "cypress run --browser chrome --headless",
The browser must be installed, even inside a docker with the correct name.