swift-snapshot-testing
swift-snapshot-testing copied to clipboard
Restore first responder after cleaning up UI hierarchy
This change fixes the following case:
UITextField(orUITextView) is a first responder- snapshot test runs
UITextFieldis no more the first responder
The fix is particularly useful when the same view is passed to two snapshot tests one after another. Say, the first snapshot test is a plain UI check, and the second one is an accessibility or layout test.