Skip to content

spirosikmd/cucumber-puppeteer-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •