Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexeyraspopov/jest-webdriver
Connect Jest tests to Selenium WebDriver
https://github.com/alexeyraspopov/jest-webdriver
jest jest-environment jest-reporter selenium-webdriver
Last synced: 2 months ago
JSON representation
Connect Jest tests to Selenium WebDriver
- Host: GitHub
- URL: https://github.com/alexeyraspopov/jest-webdriver
- Owner: alexeyraspopov
- License: mit
- Created: 2018-01-24T18:09:01.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-13T20:40:13.000Z (over 5 years ago)
- Last Synced: 2024-09-29T02:01:30.212Z (3 months ago)
- Topics: jest, jest-environment, jest-reporter, selenium-webdriver
- Language: JavaScript
- Homepage: https://alexeyraspopov.github.io/jest-webdriver
- Size: 37.1 KB
- Stars: 222
- Watchers: 8
- Forks: 22
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-list - jest-webdriver
- awesome-jest - jest-environment-webdriver
README
# Jest WebDriver Integration
Connect [Jest][1] tests to [Selenium WebDriver][2].
## Limitations
The project is in progress. It only supports running [preinstalled][3] WebDrivers (Chrome, Safari, Firefox, Edge, IE) without additional options. Capabilities configuration will be added soon. Pull requests welcomed.
## Usage
The project includes next packages that are available via NPM:
* [`jest-environment-webdriver`](./packages/jest-environment-webdriver) — custom Jest environment that allows tests to communicate with Selenium WebDriver
* [`jest-screenshot-reporter`](./packages/jest-screenshot-reporter) — complementary Jasmine reporter that captures screenshots for failed tests## Examples
In `examples` folder you can find complete demo projects with installed Jest WebDriver packages and a sample test case that does a thing.
* [Basic Test Case](https://github.com/alexeyraspopov/jest-webdriver/tree/master/examples/basic-testcase) — a demo project that includes minimum configuration and runs a single test that is written with all the recommended design patterns
## Documentation
Complete documentation and guidelines are in progress. You can find basic API reference in each package's folder.
As a complete "getting started" guide please read [Testing javascript applications with Selenium, Async/Await, and Jest](https://blog.evantahler.com/testing-javascript-applications-with-selenium-async-await-and-jest-7580ed074f2b).
[1]: http://facebook.github.io/jest/
[2]: http://www.seleniumhq.org/projects/webdriver/
[3]: https://github.com/SeleniumHQ/selenium/tree/master/javascript/node/selenium-webdriver#installation