An example of a Lighthouse custom audit that checks DOM elements.
This repository contains a Lighthouse custom audit to check for the well known web accessibility issue of adding a click handler to a non-interactive element and not ensuring it’s accessible for keyboard and screen reader users.
The following article accompanies this repository. https://keepinguptodate.com/pages/2021/08/custom-lighthouse-audit/
Run the static server for the test HTML page
npm run serve
Run the custom audit against the test HTML page
npm run lighthouse