This directory contains end-to-end tests using Maestro.
-
Install Maestro CLI:
curl -Ls "https://get.maestro.mobile.dev" | bash
-
Build and install the app on your device/emulator:
npm run android:build adb install android/app/build/outputs/apk/release/app-release.apk
-
Configure merchant settings in the app before running tests
maestro test e2e/maestro test e2e/payment-flow.yamlmaestro studio| File | Description |
|---|---|
payment-flow.yaml |
Basic payment flow: New sale → Enter amount → QR code → Copy URL |
- Create a new
.yamlfile in this directory - Start with
appId: com.reown.pos - Add test steps using Maestro commands
# Tap on text
- tapOn: "Button Text"
# Tap on element by testID
- tapOn:
id: "my-test-id"
# Assert element is visible
- assertVisible:
text: "Expected Text"
# Wait for element with timeout
- extendedWaitUntil:
visible:
id: "element-id"
timeout: 10000
# Type text
- inputText: "Hello World"
# Scroll
- scroll
# Take screenshot
- takeScreenshot: "screenshot-name"- Tests require the app to have merchant credentials configured
- Payment simulation is not yet implemented (pending backend support)
- Run on a real device or emulator with network access