A package containing E2E testcases for a web assignment
npm install testsuite2bash
$ npm i --save testsuite2
`
Then require the package in your mocha test file:
`javascript
//inside test.js
const {runTests} = require('./index.js');
const config = require('./config.json');
runTests(config);
`
You can customize puppeteer'l launch options via config.json
Running Tests
Ensure your site is running on http://localhost:8080/index.html then execute your test using mocha.comment
`bash
$ mocha test.js
``