Skip to content

Commit

Permalink
Fix tests some more
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlabelle committed Oct 23, 2024
1 parent 1b89de0 commit 5862871
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Tests/WinAppDriverTests/TimeoutTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ class TimeoutTests: XCTestCase {

static func measureNoSuchElementTime(_ session: Session) -> Double {
measureTime {
XCTAssertThrowsError({
do {
try session.findElement(locator: .accessibilityId("IdThatDoesNotExist"))
})
XCTFail("Expected a no such element error")
}
catch {}
}
}

Expand Down

0 comments on commit 5862871

Please sign in to comment.