You do not need to integrate the Fastlane snapshot for this. Snapshot does the only trick to make the screenshot run this code:
XCUIDevice.shared().orientation = .unknown
This will not change the interface as described in the Snaphot documentation.
, , , waitForExpectations(timeout:handler:), .
, XCTestObservation :
class MockObserver: NSObject, XCTestObservation {
func testCase(_ testCase: XCTestCase, didFailWithDescription description: String, inFile filePath: String?, atLine lineNumber: UInt) {
XCUIDevice.shared().orientation = .unknown
}
}
XCTestObservationCenter.shared().addTestObserver(MockObserver())
setUp() test....
, " Unknown" , :
