mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
waitConfirmation implementation (#5130)
* `waitConfirmation` implementation * even better docs * made the body not async since the context of usage did not really require it * pr suggestions
This commit is contained in:
@@ -168,17 +168,17 @@ struct NavigationTabCoordinatorTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
mutating func overlayDismissalCallbackWhenChangingMode() async throws {
|
||||
mutating func overlayDismissalCallbackWhenChangingMode() async {
|
||||
let overlayCoordinator = SomeTestCoordinator()
|
||||
|
||||
try await confirmation("Callback should not be called when just changing mode",
|
||||
expectedCount: 0) { confirmation in
|
||||
await waitForConfirmation("Callback should not be called when just changing mode",
|
||||
expectedCount: 0,
|
||||
timeout: .seconds(1)) { confirmation in
|
||||
navigationTabCoordinator.setOverlayCoordinator(overlayCoordinator) {
|
||||
confirmation()
|
||||
}
|
||||
|
||||
navigationTabCoordinator.setOverlayPresentationMode(.minimized)
|
||||
try await Task.sleep(for: .seconds(1))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user