Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blank diff snapshot #853

Open
pitr12 opened this issue May 2, 2024 · 2 comments
Open

Blank diff snapshot #853

pitr12 opened this issue May 2, 2024 · 2 comments

Comments

@pitr12
Copy link

pitr12 commented May 2, 2024

Describe the bug
When running UI tests with snapshots in CI (Circle) UI tests sometimes randomly fail on snapshots. When inspecting failed diff snapshot it sometimes produces corrupted image. See attached snapshot.

Screenshots
snapshot-with-precision-name patientsList

Environment

  • swift-snapshot-testing version [1.16.0]
  • Xcode [15.3]
  • OS: [iOS 17.4]
@alanf
Copy link

alanf commented Sep 25, 2024

I have this issue also, it seems to start with Xcode 16 for us

Screenshot 2024-09-25 at 11 17 44 AM

Of course, there's no difference but this causes the tests to fail as if there is one

@alanf
Copy link

alanf commented Sep 25, 2024

Actually inspecting it more, it seems the row byte width was different, which has no visual difference but would impact the memcmp. So overwriting the snapshots seemed to fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants