mirror of
https://github.com/bulwarkmail/native.git
synced 2026-11-01 16:05:39 +00:00
test: move to the webmail password field with safari's next key in the ios sign-in flows
This commit is contained in:
@@ -4,10 +4,15 @@
|
||||
# field and type again. The caret is still at the end of what was just
|
||||
# typed, so eraseText (which deletes before the caret) empties it; selecting
|
||||
# the text with a long press didn't work and appended instead. SECRET=yes
|
||||
# skips the check (a password field shows dots).
|
||||
# skips the check (a password field shows dots). TAP=no types into the
|
||||
# field that has the focus already.
|
||||
appId: org.bulwarkmail.mobile
|
||||
---
|
||||
- tapOn: ${HINT}
|
||||
- runFlow:
|
||||
when:
|
||||
true: ${TAP != 'no'}
|
||||
commands:
|
||||
- tapOn: ${HINT}
|
||||
- waitForAnimationToEnd:
|
||||
timeout: 3000
|
||||
- inputText: ${TEXT}
|
||||
|
||||
@@ -11,12 +11,25 @@ appId: org.bulwarkmail.mobile
|
||||
env:
|
||||
HINT: "user@example.com"
|
||||
TEXT: ${LOGIN}
|
||||
# On the iPhone, Safari's keyboard toolbar (Previous, Next, Done) can sit
|
||||
# over the password field, and a tap there leaves the focus in Email (the
|
||||
# password then went into Email). Its Next moves the focus to the password.
|
||||
- evalScript: ${output.webNext = false}
|
||||
- runFlow:
|
||||
when:
|
||||
visible: "Next"
|
||||
commands:
|
||||
- tapOn: "Next"
|
||||
- waitForAnimationToEnd:
|
||||
timeout: 2000
|
||||
- evalScript: ${output.webNext = true}
|
||||
- runFlow:
|
||||
file: type-web.yaml
|
||||
env:
|
||||
HINT: "Enter your password"
|
||||
TEXT: ${PASSWORD}
|
||||
SECRET: "yes"
|
||||
TAP: "${output.webNext ? 'no' : 'yes'}"
|
||||
- tapOn: "Sign in"
|
||||
- runFlow:
|
||||
when:
|
||||
|
||||
Reference in New Issue
Block a user