Skip to content

assertion-before-screenshot: allow customizing screenshot command #116

@EvgenyOrekhov

Description

@EvgenyOrekhov

We're using Percy for visual regression tests, and it provides its own screenshot command: cy.percySnapshot(). Other visual regression services/plugins provide their own commands, e. g. cy.matchImageSnapshot().

It would be great if assertion-before-screenshot allowed customizing screenshot commands, something like

"cypress/assertion-before-screenshot": ["error", {
  "screenshotCommands": ["percySnapshot", "matchImageSnapshot"]
}]

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions