appId: ${APP_ID}
---
# Cold-start the dev client against Metro (JS always comes from Metro) and wait for the sidebar.
- stopApp
# The dev client's floating "Tools" button is draggable and can end up on top of a row's Play button, which
# then swallows the tap — so launch it with the button, the intro and the auto-opened menu switched off.
- openLink: "magicpiano://expo-development-client/?url=http%3A%2F%2Flocalhost%3A${METRO_PORT}&__expo_disable_fab=1&__expo_disable_onboarding=1&__expo_disable_auto_launch=1"
# First-ever dev-client launch shows the developer-menu intro; it never returns afterwards.
- runFlow:
when:
visible: "Continue"
commands:
- tapOn: "Continue"
- runFlow:
when:
visible:
id: "paywall-close"
commands:
- tapOn:
id: "paywall-close"
- extendedWaitUntil:
visible:
id: "tab-button-songs"
timeout: 90000
# The sidebar mounts underneath the loading splash ("Use headphones for better experience… 99%"),
# so wait for the splash to be gone before touching anything.
- extendedWaitUntil:
notVisible: ".*Use headphones.*"
timeout: 120000
- extendedWaitUntil:
visible:
id: "songs-search-input"
timeout: 60000