Questions tagged [playwright-lighthouse]
5 questions
2
votes
2 answers
Playwright Lighthouse integration with TS: Error [ERR_REQUIRE_ESM]: require()
I'm trying to integrate Lighthouse tests in Playwright with playwright-lighthouse package.
Unfortunately I get this error:
Error [ERR_REQUIRE_ESM]: require() of ES Module C:\pw-lhc-tests\node_modules\lighthouse\core\index.js from…

pbaranski
- 22,778
- 19
- 100
- 117
1
vote
0 answers
PlayAudit function call is closing the browser/page automatically after first Lighthouse analysis
We are trying to perform Lighthouse analysis on a web application by using Playwright-lighthouse library as a utility by calling it in multiple stages within a single test.
Sample:
Before all {
browser initiation }
test {
goto(url);
await…

user3517391
- 11
- 2
0
votes
0 answers
How do you target desktop mode running Lighthouse in a pipeline
I'm running lighthouse for performance testing in a pipeline:
Github workflow:
- name: Run Lighthouse on urls and upload data to private lhci server
if: always()
uses: treosh/lighthouse-ci-action@v9
with:
configPath:…

D.Hodges
- 1,794
- 4
- 24
- 47
0
votes
0 answers
How to implemented properly google playwright-lighthouse with playwright framework with POM and Fixtures
I'm trying to implement the following package (playwright lighthouse) in my current playwright framework, but I have couple of question regarding the setup and if what I'm doing is correct.
I'm trying to set the framework by using POM and…

kocteh
- 1
0
votes
1 answer
Playwright lighthouse integration - Error: Cannot find module 'lighthouse/report/generator/report-generator'
I'm trying to implement Playwright tests with lighthouse to get performance metrics. using library and using the sample code - https://github.com/abhinaba-ghosh/playwright-lighthouse. but I'm getting error, please refer attached image.

Sujith
- 163
- 1
- 1
- 7