@@ -459,27 +459,37 @@ class UIKitConsumerPersistenceTests: XCTestCase {
459459 }
460460
461461 func testDefaultWorkflow_LaunchedFromModal_CanDestroyAllItems_AndStillProceedThroughFlow_AndCallOnFinish( ) {
462- class FR1 : TestViewController { }
463- class FR2 : TestViewController { }
464- class FR3 : TestViewController { }
462+ print ( " !!!! \( Date ( ) . timeIntervalSince1970) - testDefaultWorkflow_LaunchedFromModal_CanDestroyAllItems_AndStillProceedThroughFlow_AndCallOnFinish - Starting top view controller: \( String ( describing: UIApplication . topViewController ( ) ) ) " )
463+ class FR1 : TestViewController { override func viewDidLoad( ) { print ( " !!!! \( Date ( ) . timeIntervalSince1970) - FR1 - viewDidLoad() " ) } }
464+ class FR2 : TestViewController { override func viewDidLoad( ) { print ( " !!!! \( Date ( ) . timeIntervalSince1970) - FR2 - viewDidLoad() " ) } }
465+ class FR3 : TestViewController { override func viewDidLoad( ) { print ( " !!!! \( Date ( ) . timeIntervalSince1970) - FR3 - viewDidLoad() " ) } }
465466 let root = UIViewController ( )
466467 root. loadForTesting ( )
467468
468469 let expectOnFinish = self . expectation ( description: " onFinish called " )
470+ print ( " !!!! \( Date ( ) . timeIntervalSince1970) - testDefaultWorkflow_LaunchedFromModal_CanDestroyAllItems_AndStillProceedThroughFlow_AndCallOnFinish - Before launch top view controller: \( String ( describing: UIApplication . topViewController ( ) ) ) " )
469471 root. launchInto ( Workflow ( FR1 . self, flowPersistence: . removedAfterProceeding)
470472 . thenProceed ( with: FR2 . self, flowPersistence: . removedAfterProceeding)
471473 . thenProceed ( with: FR3 . self, flowPersistence: . removedAfterProceeding) ) { _ in
472474 XCTAssertUIViewControllerDisplayed ( isInstance: root)
473475 XCTAssertNil ( UIApplication . topViewController ( ) ? . presentingViewController)
474476 expectOnFinish. fulfill ( )
475477 }
478+
479+ print ( " !!!! \( Date ( ) . timeIntervalSince1970) - testDefaultWorkflow_LaunchedFromModal_CanDestroyAllItems_AndStillProceedThroughFlow_AndCallOnFinish - After launch top view controller: \( String ( describing: UIApplication . topViewController ( ) ) ) " )
476480 XCTAssertUIViewControllerDisplayed ( ofType: FR1 . self)
477481 XCTAssert ( UIApplication . topViewController ( ) ? . presentingViewController === root)
482+
483+ print ( " !!!! \( Date ( ) . timeIntervalSince1970) - testDefaultWorkflow_LaunchedFromModal_CanDestroyAllItems_AndStillProceedThroughFlow_AndCallOnFinish - Proceeding from FR1: \( String ( describing: UIApplication . topViewController ( ) ) ) " )
478484 ( UIApplication . topViewController ( ) as? FR1 ) ? . proceedInWorkflow ( nil )
479485 XCTAssertUIViewControllerDisplayed ( ofType: FR2 . self)
480486 XCTAssert ( UIApplication . topViewController ( ) ? . presentingViewController === root)
487+
488+ print ( " !!!! \( Date ( ) . timeIntervalSince1970) - testDefaultWorkflow_LaunchedFromModal_CanDestroyAllItems_AndStillProceedThroughFlow_AndCallOnFinish - Proceeding from FR2: \( String ( describing: UIApplication . topViewController ( ) ) ) " )
481489 ( UIApplication . topViewController ( ) as? FR2 ) ? . proceedInWorkflow ( nil )
482490 XCTAssertUIViewControllerDisplayed ( ofType: FR3 . self)
491+
492+ print ( " !!!! \( Date ( ) . timeIntervalSince1970) - testDefaultWorkflow_LaunchedFromModal_CanDestroyAllItems_AndStillProceedThroughFlow_AndCallOnFinish - Proceeding from FR3: \( String ( describing: UIApplication . topViewController ( ) ) ) " )
483493 ( UIApplication . topViewController ( ) as? FR3 ) ? . proceedInWorkflow ( nil )
484494
485495 wait ( for: [ expectOnFinish] , timeout: 3 )
0 commit comments