facebookarchive / ios-snapshot-test-case

Snapshot view unit tests for iOS
MIT License
2.66k stars 252 forks source link

Testing views with asynchronous images.. #225

Open simonpac opened 7 years ago

simonpac commented 7 years ago

Hello, I am working on implementing ui testing with this framework.

I have a view which contains an image that does not immediately load. Therefore, in my reference image, I am seeing an empty image since it has not loaded yet.

What is the proper way to run a snapshot with asynchronous loading images?

Grubas7 commented 7 years ago

@simonpac There's no native support for asynchronous snapshot tests. You could could consider 3 things: