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 git@github.com:qualityshepherd/testcafe-example.git - install
npm i
- run
npm testto watch in browser, or npm run cito run parallel, headless, and retry fails on Chromenpm run browserstackto run tests in the cloud (requires an account and env keys to be set)npm runto see more run options
Testcafe is really good; I used it for years but it has two issues that ultimately became deal-breakers for me:
- no
beforeAllwhich sucks on it's own but also means you have to useRoles... which really sucks. - they shard/thread tests at the test level instead of the file level.
