freshyo/neo-tests/e2e/admin-ui/subflows/tap-and-focus.yaml
2026-10-07 00:27:11 +05:30

25 lines
714 B
YAML

# tap-and-focus: tap a text input and GUARANTEE it holds focus.
# Typing right after a tap-on-input can race re-renders (the tap hits a stale
# frame; nothing is focused; the following inputText silently goes nowhere).
# This subflow retries the tap once, then asserts the field is focused —
# failing loudly instead of leaving an empty field behind.
# Args: FIELD_ID.
appId: in.freshyo.adminui
env:
FIELD_ID: ${FIELD_ID || ""}
---
- tapOn:
id: ${FIELD_ID}
- waitForAnimationToEnd
- runFlow:
when:
notVisible:
id: ${FIELD_ID}
focused: true
commands:
- tapOn:
id: ${FIELD_ID}
- waitForAnimationToEnd
- assertVisible:
id: ${FIELD_ID}
focused: true