We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1c8e82f + 9b3ea32 commit e9e3feaCopy full SHA for e9e3fea
1 file changed
native/SampleApps/AuthFlowTester/AuthFlowTesterUITests/PageObjects/LoginPageObject.swift
@@ -88,11 +88,14 @@ class LoginPageObject {
88
}
89
90
func performAdvancedLogin(username: String, password: String) {
91
- setTextField(usernameField(), value: username)
92
- tap(passwordFieldLabel())
+ // Fill password first so username field remains visible above the keyboard
+ tap(passwordField())
93
setTextField(passwordField(), value: password)
94
- tap(usernameFieldLabel())
95
- tap(loginButton())
+ // Now tap username field (visible above keyboard) and fill it
+ tap(usernameField())
96
+ setTextField(usernameField(), value: username)
97
+ // Press Return to submit the form
98
+ usernameField().typeText(XCUIKeyboardKey.return.rawValue)
99
tapIfPresent(allowButton())
100
101
0 commit comments