Open simonpac opened 7 years ago
@simonpac There's no native support for asynchronous snapshot tests. You could could consider 3 things:
expectation.fulfill()
and after this make snapshot. May increase test time, may fail.RunLoop.main.run(until: Date(timeIntervalSinceNow: 5))
. Will increase test time, may fail.
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?