Skip to content

Latest commit

 

History

36 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

Stars

37 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages