Skip to content

Video recording broken in playwright unless setLegacyMode trueΒ #1179

@Georgegriff

Description

@Georgegriff

Describe the bug

When doing this in playwright

  const results = await new AxeBuilder({ page })
    .withTags(["wcag2a", "wcag2aa", "wcag21a", "wcag21aa"])
    .analyze();

Enable videos in the playwright config file

it results in videos being broken i end up with loads of broken up video files because im doing multiple scans per test.

The only way to fix this is this and use setLegacyMode(true)

const results = await new AxeBuilder({ page })
    .withTags(["wcag2a", "wcag2aa", "wcag21a", "wcag21aa"])
    .setLegacyMode(true)
    .analyze();

I've reported this issue as per

Image

It would be great to not have to do this especially as i'd like to be able to test cross origin iframes

To Reproduce
Steps to reproduce the behavior:
Use the library as per code snippets

Expected behavior
Using the library doens't break videos
Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please include versions for all products, browsers, OS, etc used ):

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions