Skip to content

Commit 28b3aa2

Browse files
committed
refactor code to pass failed check
1 parent 7293176 commit 28b3aa2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

FirebaseAuth/Tests/SampleSwift/AuthenticationExampleUITests/AuthenticationExampleUITests.swift

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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),

0 commit comments

Comments
 (0)