# Mirror of client_app's 03_payment_to_chat_happy.yaml — this drives the MITRA side # of the same flow. Use this when you specifically need to assert mitra-side UI # (the incoming overlay, accept tap behavior). # # Pre-req: # 1. Mitra signed in to the mitra_app and ONLINE # 2. TEST_CUSTOMER_ID and TEST_CUSTOMER_JWT in .maestro/config.yaml point at a real customer # 3. The customer has an existing confirmed payment_session ready to blast (use the # seed_customer_pending_blast.sh helper) # # Run: # maestro test mitra_app/.maestro/flows/03_accept_general_blast.yaml appId: ${APP_ID_ANDROID} --- - launchApp: clearState: false - assertVisible: "Online" # ensure mitra is online before triggering the blast # Step 1: simulate a customer creating a confirmed payment + firing a general blast. # This script returns once the blast notification has been sent to this mitra. - runScript: ../scripts/customer_blast_now.sh # Step 2: incoming-request overlay appears on this device - assertVisible: text: "Terima" timeout: 10000 - assertVisible: "Tolak" # Step 3: mitra accepts → overlay closes, chat opens - tapOn: "Terima" - assertVisible: text: "Sesi Aktif" timeout: 5000