You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to use Cypress/puppeteer plugin for lighthouse user flow it doesn't work for me
The problem is that the function startFlow from lighthouse assume that he will receive the page from lighthouse/types/puppeteer but it received from puppeteer-core/lib/types.
is there a way to solve this problem OR should we use puppeteer itself and there is no way to work with cypress?
The text was updated successfully, but these errors were encountered:
yasserhussien
changed the title
Cypress/puppeteer plugin isn't supported for lighthouse user Flow
lighthouse user Flow isn't work with Cypress/puppeteer plugin
Aug 14, 2024
Lighthouse type checking will accept a page from the puppeteer package in your dependencies but not necessarily the puppeteer-core so that is likely the root of the issue. Is it just a type error, or are there any runtime errors?
yasserhussien
changed the title
lighthouse user Flow isn't work with Cypress/puppeteer plugin
lighthouse user Flow doesn't work with Cypress/puppeteer plugin
Aug 19, 2024
It might be possible, but would possibly be a breaking change. Right now Lighthouse accepts puppeteer page's from two locations:
The puppeteer-core package in LIghthouse's package dependencies
The first puppeteer package we find in node_modules
We would need to expand this list:
The puppeteer-core package in LIghthouse's package dependencies
The first puppeteer package we find in node_modules
The first puppeteer-core package we find node_modules
1 & 3 overlap so I think we might need to give an alias to the package in Lighthouse's deps? I think for now it's easiest to just @ts-expect-error this one but we can track the upgrade here.
adamraine
changed the title
lighthouse user Flow doesn't work with Cypress/puppeteer plugin
Update puppeteer types to accept puppeteer-core from outside Lighthouse
Aug 20, 2024
When I try to use Cypress/puppeteer plugin for lighthouse user flow it doesn't work for me
The problem is that the function startFlow from lighthouse assume that he will receive the page from lighthouse/types/puppeteer but it received from puppeteer-core/lib/types.
is there a way to solve this problem OR should we use puppeteer itself and there is no way to work with cypress?
The text was updated successfully, but these errors were encountered: