appId: ${APP_ID}
---
# Cold-start the app under test, in either build the suite runs against (E2E_MODE, set by run-release.sh):
# release (default) the bundled Release simulator app: just launch it.
# debug the Expo dev client: JS comes from Metro (METRO_PORT), so open the project link.
# `e2eSkipFtue` starts the app past onboarding + the tutorial (src/bootstrap/e2e-skip-ftue.ts); a flow
# that walks the first run starts from launch-fresh.yaml instead.
- runFlow:
when:
true: ${typeof E2E_MODE !== 'undefined' && E2E_MODE == 'debug'}
commands:
- stopApp
- launchApp:
clearState: false
stopApp: true
arguments:
e2eSkipFtue: "1"
- runFlow: connect-dev-client.yaml
- runFlow:
when:
true: ${typeof E2E_MODE === 'undefined' || E2E_MODE != 'debug'}
commands:
- launchApp:
clearState: false
arguments:
e2eSkipFtue: "1"
# The app is landscape-only after its intro. On a headless simulator iOS UI automation takes the device
# for portrait while the app draws landscape, so Maestro's taps land at rotated positions (an element's
# id is found, but tapping it hits something else). Telling Maestro the orientation fixes the mapping.
- setOrientation: LANDSCAPE_LEFT