File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
FirebaseAuth/Tests/SampleSwift/AuthenticationExampleUITests Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -189,10 +189,11 @@ class AuthenticationExampleUITests: XCTestCase {
189189 app. textFields [ " Enter Phone Number " ] . tap ( )
190190 app. textFields [ " Enter Phone Number " ] . typeText ( testPhone)
191191 app. buttons [ " Send Verification Code " ] . tap ( )
192- // Wait for the error message to appear (if there is an error)
193- let errorAlert = app. alerts. staticTexts [ " Error " ]
194- let errorExists = errorAlert. waitForExistence ( timeout: 3.0 )
195- XCTAssertFalse ( errorExists, " Error " )
192+ let errorDialog = app. alerts [ " Error " ]
193+ XCTAssertFalse (
194+ errorDialog. waitForExistence ( timeout: 5 ) ,
195+ " Error "
196+ )
196197 let verificationCodeInput = app. textFields [ " Enter verification code. " ]
197198 XCTAssertTrue (
198199 verificationCodeInput. waitForExistence ( timeout: 2 ) ,
You can’t perform that action at this time.
0 commit comments