Skip to content

ignoreColors is not being recognized as an image comparison configuration #2708

@staffier

Description

@staffier

I have two images that are identical except for their colors, one is black and white, while the other is red and white. I was expecting this test to pass:

  Scenario: Compare baseline and actual images with compareImage
    * def params =
      """
      {
        baseline: 'baseline.png',
        latest: 'latest.png',
        options: {
          ignoreColors: true
        }
      }
      """
    * compareImage params

However, it fails with an error telling me my latest image differed from my baseline by more than an allowable threshold of 0.0% (default). Furthermore, in the HTML report, when I click the "Show config" button in the imbedded image comparison results, all that shows is an empty object { }.

I tried using options: { ignore: 'colors' } } as well -- same result.

Image Image Image

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