freshyo/tests/e2e/regions/user-region-gate-manual-pick.yaml
2026-10-05 11:46:47 +05:30

38 lines
982 B
YAML

appId: ${USER_APP_ID}
env:
USER_APP_ID: ${USER_APP_ID || "com.freshyotrial.app"}
GATE_REGION_NAME: ${GATE_REGION_NAME || "Mahabubnagar"}
tags:
- region
- gate
---
# Test 13 (multi-region-tests.txt): cold start with no stored region shows the
# manual region picker; picking a region unblocks into the home screen.
- launchApp:
clearState: true
# iOS location permission alert (only on first install / after privacy reset).
- tapOn:
text: "Allow While Using App"
optional: true
# Either auto-detection lands on home, or the gate shows the picker.
- extendedWaitUntil:
visible:
text: 'home-search|Choose your region|Outside service area'
timeout: 30000
- runFlow:
when:
visible:
text: 'Choose your region|Outside service area'
commands:
- tapOn:
id: region-pick-1
- extendedWaitUntil:
visible:
id: home-region-bar
timeout: 20000
- assertVisible:
id: home-region-bar