Skip to content

Snapshot taken on CI has slight color differences compared to local #313

Closed
@edulpn

Description

@edulpn

Hi everybody, I'm having an issue here with color discrepancies in an image view. I'm using KIF framework for UI Tests and SnapshotTesting to take screenshots between interactions (asserts made on the app key window). Everything works fine, except that I get color differences from snapshots taken on my local machine vs snapshots taken on CI machine (both running the same stack, Mojave + Xcode 11.3).

Some examples below:

This one is taken by CI machine
asdf

This one is taken by my local computer
testOpenAndClose 1

This is the comparison of both images made by imagemagick
result

And these are the color discrepancies of a same pixel, measured by macOS Digital Color Meter
WhatsApp Image 2020-03-17 at 10 11 38
WhatsApp Image 2020-03-17 at 10 11 22

I know there are lots of variables and also using KIF, but do you guys have any idea of what might be causing this difference?

Thanks!

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