Would be nice to test the most common scenario(s)
- Upload a new image through Media -> Add New
- Insert image in a blog post
- Optimize image
- See before/after comparison
- Approve change
- Verify image has been replaced
- Verify thumbnail generation worked, maybe with snapshots
Collecting code coverage would be superb. Would be useful for other projects as well.
See https://github.com/search?q=playwright+v8toIstanbul+stopJSCoverage&type=code as a starting point.
https://github.com/bgotink/playwright-coverage looks promising.
So does https://github.com/cenfun/monocart-reporter
Apparently there might be a bug with v8->istanbul conversion, see istanbuljs/v8-to-istanbul#216 and cenfun/monocart-reporter#50 (found via microsoft/playwright#7030)
Probably need to build the JS with source maps
Would be nice to test the most common scenario(s)
Collecting code coverage would be superb. Would be useful for other projects as well.
See https://github.com/search?q=playwright+v8toIstanbul+stopJSCoverage&type=code as a starting point.
https://github.com/bgotink/playwright-coverage looks promising.
So does https://github.com/cenfun/monocart-reporter
Apparently there might be a bug with v8->istanbul conversion, see istanbuljs/v8-to-istanbul#216 and cenfun/monocart-reporter#50 (found via microsoft/playwright#7030)
Probably need to build the JS with source maps