mxschmitt / playwright-test-coverage

Playwright Test (@playwright/test) demo to collect coverage information via Istanbul
MIT License
118 stars 16 forks source link

failed to generate screenshot in the test report #8

Closed stevez closed 1 year ago

stevez commented 2 years ago

I just realize there is no screen shot attached in the test report, I found: 1) no test-results folder created 2) no screen shot image in the html test report,

I believe it is due to import test from the baseFixtures in stead of '@playwright/test", when I use '@playwright/test', the the screenshots are generated. Please refer my test branch to reproduce: https://github.com/stevez/playwright-test-coverage/tree/test-screenshot

stevez commented 2 years ago

I found this: https://github.com/microsoft/playwright/issues/7777, the solution would be remove page.close()

stevez commented 2 years ago

created the pull request: https://github.com/mxschmitt/playwright-test-coverage/pull/9

stevez commented 1 year ago

The fix is merged