Example e2e tests (some of which are slightly silly) written in Testcafe, that:
- use a page object pattern (now with 100% less class)
- are es6y
- use async/await
- run in parallel
- run on multiple browsers
- run headlessly
- run tests on BrowserStack
- clone
clone [email protected]:tkvarma-tw/testcafe-example.git
- install
npm install
- run
npm test
to watch in browser, or npm run all
to run parallel, headless, on Chrome and Firefox ornpm run browserstack
to run tests in the cloud (requires an account and env keys to be set)npm run
to see more options
- Enter the browserstack username and access key in
export_env.sh
file - Run
source export_env.sh
to set the environment variables from bash script. - run
npm run browserstack_chrome
to run tests in browserstack. - You can check the build running in Browserstack Automate Dashboard.