Write UI tests using Gherkin, Cucumber, and Puppeteer. This project is an example project on how to use cucumber with puppeteer. It uses the React TodoMVC project as a test UI.
Run yarn
/npm install
to get the dependencies and then run yarn test
/npm test
to execute the UI tests.
The test command will generate a JSON report file. You can use the yarn test:report
/npm run test:report
command to check the HTML report.
The tests run by default in headless mode. To launch a full version of Chromium:
$ HEADLESS=false yarn test
The http://todomvc.com/examples/react/#/
might be slow. To avoid any kind of timeout erros, in world.js there is an example of how to change the default timeout.