mfrachet / cypress-audit

⚡ Run Lighthouse and Pa11y audits directly in your E2E test suites
https://mfrachet.github.io/cypress-audit/
MIT License
352 stars 43 forks source link

Cypress-Audit support for Lighthouse-user-flow #218

Open Srutherford2407 opened 1 year ago

Srutherford2407 commented 1 year ago

What would you like to see in the library? We are currently looking to test with lighthouse a modal contained with a page, IE page has to load and an action is taken to expose the modal. Currently if we run cy.lighthouse() the page is reloaded and that modal is lost. I noticed that lighthouse had this (https://web.dev/lighthouse-user-flows/#snapshots) which currently works with puppeteer.

Why? With applications that have different snippets of code (micro services) coming from different areas it would be benefit to capture that user-flow with lighthouse and not just the first page load of a given application.

Any other information that may help understanding the need https://web.dev/lighthouse-user-flows/#snapshots https://github.com/GoogleChrome/lighthouse/blob/main/docs/user-flows.md