Skip to content

Commit

Permalink
test: minor updates to unit tests for webview provider
Browse files Browse the repository at this point in the history
  • Loading branch information
desusai7 committed Oct 9, 2024
1 parent bddf7a5 commit b8de698
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Auth0Tests/WebViewProviderSpec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import WebKit
@testable import Auth0

private let Timeout: NimbleTimeInterval = .seconds(2)
private let LongerTimeout: NimbleTimeInterval = .seconds(5)

class WebViewProviderSpec: QuickSpec {

Expand Down Expand Up @@ -121,7 +122,7 @@ class WebViewProviderSpec: QuickSpec {
UIApplication.shared.windows.last(where: \.isKeyWindow)?.rootViewController = root
root.present(mockViewController, animated: false)

waitUntil(timeout: Timeout) { done in
waitUntil(timeout: LongerTimeout) { done in
callback = { result in
expect(root.presentedViewController).to(beNil())
expect(mockViewController.view.subviews.contains(webViewUserAgent.webview)).to(beFalse())
Expand Down

0 comments on commit b8de698

Please sign in to comment.