appId: ${USER_APP_ID} env: USER_APP_ID: ${USER_APP_ID || "com.freshyotrial.app"} USER_MOBILE: ${USER_MOBILE || ""} USER_PASSWORD: ${USER_PASSWORD || ""} tags: - region - cart --- # Adds the first home product card to the scheduled cart with the first # offered slot. Ends on the cart page. Requires an active region with # products and upcoming slots. - launchApp - extendedWaitUntil: visible: id: home-region-bar timeout: 20000 # Log in first if the session expired (clearState wipes auth). - runFlow: when: visible: text: 'Me, tab' commands: - tapOn: 'Me, tab, 5 of 5' - runFlow: when: visible: id: user-login-mobile file: user-login-password.yaml - runFlow: when: visible: text: 'Home, tab' commands: - tapOn: 'Home, tab, 1 of 5' - extendedWaitUntil: visible: id: home-region-bar timeout: 20000 - tapOn: id: add-to-cart-icon index: 0 - extendedWaitUntil: visible: text: 'Select Delivery Slot' timeout: 15000 # Pick the first slot option (ids look like slot-YYYY-MM-DD-HH-mm). - tapOn: id: 'slot-.*' index: 0 - tapOn: id: add-to-cart-confirm - extendedWaitUntil: visible: id: go-to-cart timeout: 15000 - tapOn: id: go-to-cart - extendedWaitUntil: visible: text: 'Delivery Address' timeout: 20000