From e15887933c3d2abd529bee69197b40a25dea10c3 Mon Sep 17 00:00:00 2001 From: Brandon Williams Date: Tue, 27 Aug 2024 12:25:47 -0400 Subject: [PATCH] Updated tests. --- .../CaseStudiesTests/PresentationTests.swift | 26 +++++++++---------- .../xcshareddata/swiftpm/Package.resolved | 4 +-- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Examples/CaseStudiesTests/PresentationTests.swift b/Examples/CaseStudiesTests/PresentationTests.swift index d6716829f..33b28506a 100644 --- a/Examples/CaseStudiesTests/PresentationTests.swift +++ b/Examples/CaseStudiesTests/PresentationTests.swift @@ -437,21 +437,21 @@ final class PresentationTests: XCTestCase { let vc = VC() try await setUp(controller: vc) - withUITransaction(\.uiKit.disablesAnimations, true) { - vc.presentedChild = Model() - } - try await Task.sleep(for: .seconds(0.5)) - - withUITransaction(\.uiKit.disablesAnimations, true) { - vc.presentedChild?.isPushed = true - } - try await Task.sleep(for: .seconds(0.5)) + vc.presentedChild = Model() + await assertEventuallyNotNil(vc.presentedViewController) - withUITransaction(\.uiKit.disablesAnimations, false) { - vc.presentedChild?.isPushed = false - } - try await Task.sleep(for: .seconds(1)) + vc.presentedChild?.isPushed = true + await assertEventuallyEqual( + (vc.presentedViewController as? UINavigationController)?.viewControllers.count, + 2 + ) + try await Task.sleep(for: .seconds(0.3)) + vc.presentedChild?.isPushed = false + await assertEventuallyEqual( + (vc.presentedViewController as? UINavigationController)?.viewControllers.count, + 1 + ) await assertEventuallyNotNil(vc.presentedChild) } } diff --git a/Examples/Examples.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Examples/Examples.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index 8b6ab712a..d51a77cc5 100644 --- a/Examples/Examples.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/Examples/Examples.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -1,5 +1,5 @@ { - "originHash" : "808eb8e1d07661e8b57a786176eca2c0701a6e550ecfe221b0585e8b058c8ebd", + "originHash" : "d0f789afc5a07ea2d162d8405e7e2c61a4303155472804d542723dbcf4eba9e7", "pins" : [ { "identity" : "combine-schedulers", @@ -67,7 +67,7 @@ { "identity" : "swift-docc-plugin", "kind" : "remoteSourceControl", - "location" : "https://github.com/apple/swift-docc-plugin", + "location" : "https://github.com/swiftlang/swift-docc-plugin", "state" : { "revision" : "26ac5758409154cc448d7ab82389c520fa8a8247", "version" : "1.3.0"