Skip to content

Commit b1d3197

Browse files
committed
check no user is signed in
1 parent 818b6c7 commit b1d3197

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

FirebaseAuth/Tests/SampleSwift/AuthenticationExampleUITests/AuthenticationExampleUITests.swift

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,17 @@ class AuthenticationExampleUITests: XCTestCase {
241241

242242
app.swipeDown(velocity: .fast)
243243

244-
// Assert that there is no error message (success case)
244+
// Assert that there is no error message (success case) the link is assumed to have been sent successfully if no error appears
245245
XCTAssertFalse(errorExists, "Expected no error message, but one appeared.")
246-
// At this point, the link is assumed to have been sent successfully since no error appeared
246+
247+
// Go back and check that there is no user that is signed in
248+
app.tabBars.firstMatch.buttons.element(boundBy: 1).tap()
249+
wait(forElement: app.navigationBars["User"], timeout: 5.0)
250+
XCTAssertEqual(
251+
app.cells.count,
252+
0,
253+
"The user shouldn't be signed in and the user view should have no cells."
254+
)
247255
}
248256

249257
// MARK: - Private Helpers

0 commit comments

Comments
 (0)