File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
FirebaseAuth/Tests/SampleSwift/AuthenticationExampleUITests Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments