fix test
This commit is contained in:
@@ -71,7 +71,7 @@ final class AuthenticationTests: XCTestCase {
|
||||
passwordField.typeText("secret123")
|
||||
|
||||
// Then: Find and tap the eye icon (visibility toggle)
|
||||
let eyeButton = app.buttons.containing(NSPredicate(format: "label CONTAINS[c] 'eye'")).firstMatch
|
||||
let eyeButton = app.buttons[AccessibilityIdentifiers.Authentication.passwordVisibilityToggle].firstMatch
|
||||
XCTAssertTrue(eyeButton.waitForExistence(timeout: 5), "Password visibility toggle button must exist")
|
||||
|
||||
eyeButton.tap()
|
||||
|
||||
Reference in New Issue
Block a user