ci: check and retype web sign-in fields in the ios flows

This commit is contained in:
Linus Rath
2026-10-22 09:54:21 +02:00
parent 62931bcc53
commit f00cd6a259
3 changed files with 25 additions and 10 deletions
+5 -2
View File
@@ -6,8 +6,11 @@ appId: org.bulwarkmail.mobile
visible: "you@example.com"
timeout: 60000
- takeScreenshot: stalwart-login-page
- tapOn: "you@example.com"
- inputText: ${LOGIN}
- runFlow:
file: type-web.yaml
env:
HINT: "you@example.com"
TEXT: ${LOGIN}
- tapOn: "••••••••"
- inputText: ${PASSWORD}
- runFlow:
+19 -8
View File
@@ -1,14 +1,25 @@
# Type TEXT into a web page field found by its placeholder HINT (the sign-in
# pages in the auth session). First character alone, as in type.yaml.
# pages in the auth session), and check it arrived as typed. Now and then a
# stray character lands in front of it on the CI simulator; then select the
# field's text and type over it. SECRET=yes skips the check (a password
# field shows dots).
appId: org.bulwarkmail.mobile
---
- evalScript: ${output.webHead = TEXT.slice(0, 1); output.webTail = TEXT.slice(1)}
- tapOn: ${HINT}
- waitForAnimationToEnd:
timeout: 3000
- inputText: ${output.webHead}
- extendedWaitUntil:
visible: "zz-no-such-element-zz"
timeout: 1000
optional: true
- inputText: ${output.webTail}
- inputText: ${TEXT}
- runFlow:
when:
true: ${SECRET != 'yes'}
commands:
- runFlow:
when:
notVisible: ${TEXT}
commands:
- longPressOn: ".*${TEXT}.*"
- tapOn:
text: "Select All"
optional: true
- inputText: ${TEXT}
- assertVisible: ${TEXT}
@@ -16,6 +16,7 @@ appId: org.bulwarkmail.mobile
env:
HINT: "Enter your password"
TEXT: ${PASSWORD}
SECRET: "yes"
- tapOn: "Sign in"
- runFlow:
when: