JestJS integration with BrowserStack for E2E functional testing of UI using Selenium 4.
To perform tests using Selenium 3, please checkout the selenium 3 branch
- Clone the repository
- Install the dependencies using
npm installoryarn install - Set environment variables with your BrowserStack Username and Access Key
- Set them as environment variables:
- on mac
export BROWSERSTACK_USERNAME=YOUR_USERNAME export BROWSERSTACK_ACCESS_KEY=YOUR_ACCESS_KEY
- on windows
set BROWSERSTACK_USERNAME=YOUR_USERNAME set BROWSERSTACK_ACCESS_KEY=YOUR_ACCESS_KEY
- on mac
- To run tests, run
npm run paralleloryarn run parallel - To run tests on private websites, run
npm run localoryarn run local
- You can view your test results on the BrowserStack Automate Dashboard
- To test on a different set of browsers, check out our platform configurator