appId: ${ADMIN_APP_ID} env: ADMIN_APP_ID: ${ADMIN_APP_ID || "in.freshyo.adminui"} STAFF_NAME: ${STAFF_NAME || ""} STAFF_PASSWORD: ${STAFF_PASSWORD || ""} NEW_DELIVERY_CHARGE: ${NEW_DELIVERY_CHARGE || "18"} tags: - region - consts --- # Test 4.1 (region-test-cases.txt): the admin's own region Delivery Charge is # editable via customize-app and saves successfully. Which region row is # written depends on the active bound tab (bound-scoped override vs region). - launchApp - runFlow: when: visible: id: login-name-input file: ../subflows/login.yaml - extendedWaitUntil: visible: text: '.*Customize app settings.*' timeout: 20000 - tapOn: '.*Customize app settings.*' - extendedWaitUntil: visible: text: '.*Delivery Charge.*' timeout: 20000 # First numeric field on the form is Delivery Charge. - tapOn: text: '^[0-9]+(\\.[0-9]+)?$' index: 0 - eraseText: 10 - inputText: ${NEW_DELIVERY_CHARGE} - hideKeyboard - scrollUntilVisible: element: 'Save Changes' direction: DOWN timeout: 10000 - tapOn: 'Save Changes' - extendedWaitUntil: visible: text: '.*success.*|.*Updated.*|.*Saved.*' timeout: 20000