appId: com.wellnuo.app --- # WellNuo Demo Flow E2E Test # Tests the complete flow from Enter Name to Dashboard # Prerequisites: User already logged in, on "What's your name?" screen # # Flow: # 1. Enter Name (First + Last) # 2. Add Beneficiary (Grandma) # 3. Get Started → "I already have sensors" # 4. Connect Sensors → "Use demo code" → Activate # 5. Sensors Connected → Go to Dashboard # 6. Verify Dashboard # --- STEP 1: Enter Name --- - assertVisible: text: "What's your name" optional: true - tapOn: text: "First name" optional: true - inputText: "Test" - hideKeyboard - tapOn: text: "Last name" optional: true - inputText: "User" - hideKeyboard - tapOn: text: "Continue" # Wait for Add Loved One screen - extendedWaitUntil: visible: "Add a Loved One" timeout: 10000 # --- STEP 2: Add Beneficiary --- - takeScreenshot: "01-add-loved-one" - tapOn: text: "Name" optional: true - inputText: "Grandma" - hideKeyboard - tapOn: text: "Continue" # Wait for Get Started screen - extendedWaitUntil: visible: "Get Started" timeout: 10000 # --- STEP 3: Get Started (Purchase) --- - takeScreenshot: "02-get-started" # Scroll to see "I already have sensors" - swipe: direction: UP duration: 500 - tapOn: text: "I already have sensors" optional: true # Wait for Connect Sensors - extendedWaitUntil: visible: "Connect Sensors" timeout: 10000 # --- STEP 4: Connect Sensors (Demo) --- - takeScreenshot: "03-connect-sensors" - tapOn: text: "Use demo code" optional: true # Wait for code to be filled - extendedWaitUntil: visible: "DEMO-1234-5678" timeout: 3000 - tapOn: text: "Activate" optional: true # Wait for success - extendedWaitUntil: visible: "Sensors Connected" timeout: 15000 # --- STEP 5: Success → Dashboard --- - takeScreenshot: "04-sensors-connected" - tapOn: text: "Go to Dashboard" optional: true # May get stuck on Subscription loading - press back - extendedWaitUntil: visible: "My Loved Ones" timeout: 10000 - back: optional: true # --- STEP 6: Verify Dashboard --- - takeScreenshot: "05-dashboard" - assertVisible: text: "My Loved Ones" optional: true - assertVisible: text: "Grandma" optional: true # Test tabs - tapOn: text: "Chat" optional: true - takeScreenshot: "06-chat-tab" - tapOn: text: "Voice" optional: true - takeScreenshot: "07-voice-tab" - tapOn: text: "Profile" optional: true - takeScreenshot: "08-profile-tab" - tapOn: text: "Beneficiaries" optional: true - takeScreenshot: "09-test-complete"