Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spirosikmd/jest-cucumber-puppeteer-example
Example project on how to use cucumber and puppeteer with jest for UI testing.
https://github.com/spirosikmd/jest-cucumber-puppeteer-example
cucumber gherkin jest puppeteer reactjs ui-testing
Last synced: about 1 month ago
JSON representation
Example project on how to use cucumber and puppeteer with jest for UI testing.
- Host: GitHub
- URL: https://github.com/spirosikmd/jest-cucumber-puppeteer-example
- Owner: spirosikmd
- License: mit
- Created: 2018-04-26T22:05:47.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T18:18:27.000Z (almost 2 years ago)
- Last Synced: 2024-04-14T23:59:40.282Z (8 months ago)
- Topics: cucumber, gherkin, jest, puppeteer, reactjs, ui-testing
- Language: JavaScript
- Size: 389 KB
- Stars: 23
- Watchers: 2
- Forks: 14
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jest-cucumber-puppeteer-example
[![CircleCI](https://circleci.com/gh/spirosikmd/jest-cucumber-puppeteer-example.svg?style=svg)](https://circleci.com/gh/spirosikmd/jest-cucumber-puppeteer-example)
Write UI tests using [Cucumber](https://github.com/cucumber/cucumber), [Gherkin](https://github.com/cucumber/cucumber/wiki/Gherkin), [Puppeteer](https://github.com/GoogleChrome/puppeteer), and [Jest](https://facebook.github.io/jest/). It uses the [React TodoMVC](http://todomvc.com/examples/react/#/) project as a test UI. The Jest integration is made possible by the awesome [jest-puppeteer](https://github.com/smooth-code/jest-puppeteer) and [jest-cucumber](https://github.com/bencompton/jest-cucumber) packages 🙌
Run `yarn` to install the dependencies and then `yarn test` to execute the UI tests.
To run the tests in headless mode:
```
$ HEADLESS=false yarn test
```