[Bug]: Having multiple Page
s on the same domain, JS coverage is only reported for the one that got stopJSCoverage
called before others
#30876
Labels
Version
1.44.0
Steps to reproduce
Example steps:
npm install
npm run test
Expected behavior
I expect coverage reports from both
Page
s to contain files.Actual behavior
Only the
Page
that had it'sstopJSCoverage
method called first has files in the report. The second page reports empty list.If I reverse the order (
for (const page of context.pages().reverse()
), then thePage
that used to report empty list will have files in the coverage, and the one that previously did have the files will report empty list, confirming the guess. Note that the pages have different set of files in their reports.Additional context
Seems like the issue happens only for pages on the same domain. You can un
skip
the second test to check.Environment
The text was updated successfully, but these errors were encountered: