spirosikmd / cucumber-puppeteer-example

Example project on how to use cucumber with puppeteer for UI testing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cucumber-puppeteer-example

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.

Headless

The tests run by default in headless mode. To launch a full version of Chromium:

$ HEADLESS=false yarn test

Timeouts

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.

About

Example project on how to use cucumber with puppeteer for UI testing

License:MIT License


Languages

Language:JavaScript 83.0%Language:Gherkin 17.0%