Skip to content

aleparty/puppeteer-api-typescript-examples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

puppeteer-api-typescript-examples

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.

Dependencies

  • Node.js version 8 or greater

Test execution

To run the tests, execute npm install, npm run build then npm test.

Run single spec file without transpiling

./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

About

This repo provides an example of how to create an automated test suite using TypeScript and puppeteer.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 100.0%