You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
func myTest() throws {
let sut = ContentView()
let exp = sut.inspection.inspect { view in
XCTAssertEqual(try view.actualView().selectedTab, 1)
XCTAssertNoThrow(try view.find(text: "one"))
try view.find(viewWithId: "myId").button().tap()
XCTAssertEqual(try view.actualView().selectedTab, 2)
}
let exp2 = sut.inspection.inspect(after: 2) { view in
XCTAssertEqual(try view.actualView().selectedTab, 2)
XCTAssertThrowsError(try view.find(text: "one")) // <==== XCTAssertThrowsError failed: did not throw an error
XCTAssertNoThrow(try view.find(text: "two"))
}
ViewHosting.host(view: sut)
wait(for: [exp, exp2], timeout: 2)
}
I get the error in the marked line; it seems as if the tab is not switched, or at least ViewInspector does not see the change. Or am I doing something wrong here?
The text was updated successfully, but these errors were encountered:
With the following view
and this test
I get the error in the marked line; it seems as if the tab is not switched, or at least ViewInspector does not see the change. Or am I doing something wrong here?
The text was updated successfully, but these errors were encountered: