Closed JustasL closed 1 year ago
@JustasL there is also loadViewIfNeeded()
Might also be related to #717
@JustasL there is also
loadViewIfNeeded()
Yes, but it does not call viewWillAppear
/viewDidAppear
Might also be related to #717
Closing issue because it is related to #717
Describe the bug
Snapshotting.wait
does not work unlessview
value is read I've created a demo repo, that's very simple, contains framework, snapshot test targetTo Reproduce
Demo repo: https://github.com/JustasL/DelayedSnapshotingDemo
Run
testDelayedSnapshoting
in myDemoUIKitTests
The generated UIViewController snapshot screenshot will have a red backgroundExpected behavior
While I would expect to see a green background, due to delay in
viewDidLoad
andwait
One work-a-round for this issue is to call
Before calling
assertSnapshot
, but then if we have UI setup logic inviewWillAppear
with delay, theassertSnapshot
method breaks againEnvironment