Replies: 5 comments
-
I am having the same issue with reference screenshots taken on iOS 13 and testing on iOS 14. What I found out is that only view controllers were affected. Tests for views by themselves are still passing. This makes me think there is something they changed in iOS 14 |
Beta Was this translation helpful? Give feedback.
-
I actually have done some extensive testing to try to find a pattern or a reason. I understand how the images are gathered and compared from the source code. I wanted to dig a bit deeper. I have had viewcontrollers and uiviews pass and fail unpredictably. For example a reference image for a tableviewcontroller at 13.1 will pass at 13.2, 13.3, and fail at 13.4+. But a UIView such as the cell could still fail at 13.4+, but could pass if I remove a shifted textview from inside of it. The hierarchy is slightly shifted in different ways. You could remove views to compensate, but it's just not worth it. The original hope was to find unintended UI changes in our sdk between versions. I don't see a way to distinguish what could be an issue with our sdk or if it's introduced by the iOS version change itself. Also the reviewing of new references images as they are needed for new versions might be too time consuming. |
Beta Was this translation helpful? Give feedback.
-
As a workaround you can maybe try to use |
Beta Was this translation helpful? Give feedback.
-
FWIW, this is also a massive headache for me. I'm trying to convince my team to get onboard with snapshot testing but this is making things difficult 😓 |
Beta Was this translation helpful? Give feedback.
-
Converting this to a discussion. Ideally Apple would offer a consistent way of screen shotting across devices, but alas they do not. In the meantime, maybe we can discuss our various ways of working around the issue, and maybe some ideas can be contributed back! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm aware of the disclaimer:
My team is using this delightful library. We have some concerns about reference images taken on iOS versions and then having to retake new images every iOS update since we will have 1000s of images.
1. What causes image discrepancies between snapshots from different iOS versions?
2. Will this be possible to include in a future release?
3. What are some current strategies that the community has been using to work around this?
It seems unpredictable which iOS version snapshots will pass and how the diffing image will look. 13.1, 13.2, 13.3 all pass but below is a diffing image for a minor release of 13.3 -> 13.4. Another diffing image from 13.4 -> 14 has a different diffing failure. I suspect it's due to unpredictable changes in the APIs that Apple renders the views between versions?
Thank You!
Pat OBrien
Beta Was this translation helpful? Give feedback.
All reactions