A starter suite of tests utilising Puppeteer to drive non-functional tests through a Lighthouse audit
- Accessibility overview
- Performance overview
- Progressive Web App overview
- Best Practices overview
- SEO overview
- Page load speed
- Colour contrast check
- Vulnerabile library check
- AltText on images check
- PageSpeed check
- ARIA attribute values check
- ARIA attributes check
- Duplicate elementId check
- Tab Index check no values > 0
- Logical tab order checck
Node version 7.10.1 or greater
If you are running an earlier version of node, you can update with the following commands:
sudo npm cache clean -f
sudo npm install n
(or 'sudo npm install -g n' should you wish to update node globally)
sudo n stable
Or, using NVM:
nvm install node --reinstall-packages-from=node
In the test.js file, update the following variable to reflect your chosen url
const url = '<Your URL goes here>';
npm install
npm test
This suite provides a basic overview of the Lighthouse audit. In the event of test failures, additional information can be found by running a comprehensive Lighthouse audit
lighthouse <url> --view