A boilerplate for E2E(End-To-End) tests with Selenium docker containers.
At the current, you can test using the official Selenium image or Zalenium image.
- WebdriverIO
- mocha
- power-assert
- Less configuration to start E2E testing
- Handy NPM scripts
git clone https://github.com/re-fort/e2e-boilerplate
cd e2e-boilerplate
npm i # or yarn install
cp config/.env.sample.js config/.env.js
docker-compose up -d
# if using Zalenium, need to pull customized Selenium image
docker pull elgalu/selenium:3.8.1
docker-compose -f docker-compose.zalenium.yml up -d
npm run e2e:local
npm run e2e:local:staging
npm run e2e:saucelabs
npm run e2e:saucelabs:staging