Closed RuslanAktaev closed 1 year ago
Attaching the pull request GH-147
Hi @RuslanAktaev. As far as I'm aware, this is how its always worked?
I'd recommend that you use the authenticate
hook if you're trying to authenticate. It only runs once initially before it starts any of the scans.
See https://unlighthouse.dev/guide/guides/authentication#programmatic-usage
@harlan-zw Oh! I didn't see you added a new hook. Perfect! Thank you
Describe the bug
As I understand from the doc,
puppeteer:before-goto
hook supposed to run once for each url. But now it runs on every url change (targetchanged
event). It leads to the collisions.Steps to reproduce
I'm using Next v12.3.1 app with NX monorepo. Node v18.15.0
Expected behavior
Unlighthouse shows report for 3 protected routes:
Current behavior
puppeteer:before-goto
runs on every url change (on initialization, afterawait page.goto(
https://${HOST}/sign-in)
, after submit login), that leads to theTargetCloseError
:Reproduction
No response
System / Nuxt Info
No response