Open arvigeus opened 2 years ago
I am trying to run this code example from README: Running lighthouse on authenticated routes with the test runner. I use "https://playwright.dev/" and don't set any cookies (smoke testing)
"https://playwright.dev/"
"playwright-lighthouse": "^2.2.2" "lighthouse": "^9.6.7", "@playwright/test": "^1.26.0",
I managed it to run if I close the page in advance and use the url instead:
const url = page.url(); page.close(); await playAudit({ url, port, });
Browsing the source it seems there is no difference between url and page, so my guess is that documentation should be updated. In any case, if any future googler stumbles upon this issue, I hope it's useful!
url
page
I am trying to run this code example from README: Running lighthouse on authenticated routes with the test runner. I use
"https://playwright.dev/"
and don't set any cookies (smoke testing)I managed it to run if I close the page in advance and use the url instead:
Browsing the source it seems there is no difference between
url
andpage
, so my guess is that documentation should be updated. In any case, if any future googler stumbles upon this issue, I hope it's useful!