Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanPodymov committed Oct 19, 2023
1 parent c5fa28a commit c8582f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DEV-SimpleTests/ViewControllerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ class ViewControllerTests: XCTestCase {
_ = viewController.view

let promise = expectation(description: "User Agent expectation")
DispatchQueue.main.asyncAfter(deadline: .now() + 3) {
let usesForemWebViewUserAgent = self.viewController.webView.customUserAgent?.contains("ForemWebView")
viewController.webView.evaluateJavaScript("navigator.userAgent") { agent, _ in
let usesForemWebViewUserAgent = (agent as? String)?.contains("ForemWebView")
XCTAssertTrue(usesForemWebViewUserAgent ?? false)
promise.fulfill()
}
Expand Down

0 comments on commit c8582f8

Please sign in to comment.