Skip to content

E2E Tests: Code coverage #73

@swissspidy

Description

@swissspidy

Would be nice to test the most common scenario(s)

  1. Upload a new image through Media -> Add New
  2. Insert image in a blog post
  3. Optimize image
  4. See before/after comparison
  5. Approve change
  6. Verify image has been replaced
  7. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions