Skip to content

Commit 57634d0

Browse files
test: fix selector that was crashing tests
1 parent b9f893a commit 57634d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

samples/swiftui/FirebaseSwiftUIExample/FirebaseSwiftUIExampleUITests/MFAEnrolmentUITests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ final class MFAEnrollmentUITests: XCTestCase {
196196
// 6) Select UK country code and enter phone number (without dial code)
197197
// Find and tap the country selector - try multiple approaches since it's embedded in the
198198
// TextField
199-
let countrySelector = app.buttons["🇺🇸 +1"]
199+
let countrySelector = app.staticTexts["+1"].firstMatch
200200
XCTAssertTrue(countrySelector.waitForExistence(timeout: 5))
201201

202202
countrySelector.tap()

0 commit comments

Comments
 (0)