Skip to content

Cypress counts overwritten screenshots as unique in run results #8079

Closed
@kuceb

Description

@kuceb

if you use afterScreenshot and save multiple screenshots to the same path, cypress will report the overwritten screenshot as a unique screenshot

current:


  (Screenshots)

  -  /XXX/XXX/XXX/screenshot-replacement.png                                                   (2x2)
  -  /XXX/XXX/XXX/screenshot-replacement.png                                                   (2x2)
  -  /XXX/XXX/XXX/screenshot-replacement.png                                                   (2x2)

expected:


  (Screenshots)

  -  /XXX/XXX/XXX/screenshot-replacement.png                                                   (2x2)



Activity

cypress-bot

cypress-bot commented on Aug 10, 2020

@cypress-bot
Contributor

The code for this is done in cypress-io/cypress#3968, but has yet to be released.
We'll update this issue and reference the changelog when it's released.

cypress-bot

cypress-bot commented on Aug 20, 2020

@cypress-bot
Contributor

Released in 5.0.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v5.0.0, please open a new issue.

locked as resolved and limited conversation to collaborators on Aug 20, 2020
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

      Participants

      @jennifer-shehane@kuceb

      Issue actions

        Cypress counts overwritten screenshots as unique in run results · Issue #8079 · cypress-io/cypress