Skip to content

On failure, the reference image uses the wrong DPI, resulting in bizarre diff image聽#190

Description

@acecilia

馃憢

I am using latest version 8.0. I have configured the following:

fileNameOptions = .none

When recording, the framework generates the image correctly. The generated image is:

  • test_iconWithLabel.png, 600 脳 200 pixels, 144 pixels/inch

When having a test failure in the same image, these are the generated failure diff images:

  • diff_test_iconWithLabel.png, 1200 脳 400 pixels, 144 pixels/inch
  • failed_test_iconWithLabel.png, 600 脳 200 pixels, 144 pixels/inch
  • reference_test_iconWithLabel.png, 600 脳 200 pixels, 72 pixels/inch

As you can see:

  • The DPI of the reference_test_iconWithLabel.png image does not match the DPI of the test_iconWithLabel.png recorded image
  • The diff_test_iconWithLabel.png contains the following very unexpected content:
Screenshot 2023-10-03 at 17 18 40

Find all images attached here: Images.zip

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

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions