This repo contains examples of how to create page objects and tests using puppeteer and TypeScript. The application under test is tourdedave's "the-internet" project which contains examples of hard to automate pages. The test framework is mocha.
- Node.js version 8 or greater
To run the tests, execute npm install, npm run build then npm test.
./node_modules/.bin/mocha --timeout 10000 --require ts-node/register <spec_file>.ts
./node_modules/.bin/mocha --timeout 10000 --require ts-node/register src/tests/brokenimages.spec.ts