abhinaba-ghosh / playwright-lighthouse

:performing_arts:: Playwright Lighthouse Audit
https://www.npmjs.com/package/playwright-lighthouse
MIT License
250 stars 28 forks source link

Why do we get two windows? #29

Closed basalona closed 2 years ago

basalona commented 2 years ago

When I run the tests I am getting two browser windows open, one with normal resolutions and another one with mobile? Is this an expected behavior?

alexOliveira87 commented 2 years ago

Yes, lighthouse has checks also for mobile. if you want to disable the mobile checks you can add this to your playAudit: opts: { screenEmulation: false },

fasatrix commented 2 years ago

@alexOliveira87 I get the following error if I try

image

fasatrix commented 2 years ago

I think the actual entry is this: opts: { screenEmulation: { disabled: true } }