Skip to content

[Feature] Add button to update old snapshot with new snapshot #28415

Description

@hai5nguy

When doing visual regression testing in UI mode, it would be nice if there's a button to update the snapshot.

Workflow would be as follow:

  1. Run npx playwright test --ui
  2. Click Run all
  3. Find all failing visual regression tests, let's assume there's many that failed.
  4. Check attachments for each tests.
  5. If the actual is correct, but doesn't match the expected, then there should be a button to use the actual as the new expected/master screenshot.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions