Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions maestro/pay-tests/.maestro/pay_cancel_from_kyc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ tags:
# Wait for payment options to load
- extendedWaitUntil:
visible:
id: "pay-merchant-info"
id: "pay-select-option-header"
timeout: 15000

# Verify first option is pre-selected
# Verify first option exists
- assertVisible:
id: "pay-option-0-selected"
id: "pay-option-0"

# Tap Continue to go to collectData webview
# Tap the first option to go to collectData webview
- tapOn:
id: "pay-button-continue"
id: "pay-option-0"

# Wait for KYC webview to load
- extendedWaitUntil:
Expand Down
2 changes: 1 addition & 1 deletion maestro/pay-tests/.maestro/pay_double_scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ tags:
- copyTextFrom:
id: "pay-button-pay"
- assertTrue:
condition: "${maestro.copiedText == 'Pay $0.01'}"
condition: "${maestro.copiedText.startsWith('Pay $')}"

# Tap Pay, verify success, tap "Got it!"
- runFlow:
Expand Down
12 changes: 6 additions & 6 deletions maestro/pay-tests/.maestro/pay_kyc_back_navigation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ tags:
# Wait for payment options to load
- extendedWaitUntil:
visible:
id: "pay-merchant-info"
id: "pay-select-option-header"
timeout: 15000

# Verify first option is pre-selected
# Verify first option exists
- assertVisible:
id: "pay-option-0-selected"
id: "pay-option-0"

# Tap Continue to go to collectData webview
# Tap the first option to go to collectData webview
- tapOn:
id: "pay-button-continue"
id: "pay-option-0"

# Wait for KYC webview to load
- extendedWaitUntil:
Expand All @@ -50,7 +50,7 @@ tags:
# Verify we're back at the selectOption view
- extendedWaitUntil:
visible:
id: "pay-option-0-selected"
id: "pay-option-0"
timeout: 10000

# Dismiss the modal
Expand Down
36 changes: 10 additions & 26 deletions maestro/pay-tests/.maestro/pay_multiple_options_kyc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ tags:
WPAY_CUSTOMER_KEY: ${WPAY_CUSTOMER_KEY_MULTI_KYC}
WPAY_MERCHANT_ID: ${WPAY_MERCHANT_ID_MULTI_KYC}

- clearState

- startRecording: "WalletConnect Pay Multiple Options KYC"

# Open wallet, paste payment URL
Expand All @@ -20,44 +22,26 @@ tags:
# Wait for payment options to load
- extendedWaitUntil:
visible:
id: "pay-merchant-info"
id: "pay-select-option-header"
timeout: 15000

# Verify first option is pre-selected (index 0)
# Verify first option exists
- assertVisible:
id: "pay-option-0-selected"
id: "pay-option-0"

# Verify at least a second option exists (multiple options)
- assertVisible:
id: "pay-option-1"

# Verify "Info required" badge is visible on KYC options
- assertVisible:
id: "pay-info-required-badge"

# Verify "?" info button is visible in the header
# Verify info-required marker is visible on KYC options
- assertVisible:
id: "pay-button-info"
id: "pay-option-info-required"

# Select the second option (index 1)
- tapOn:
id: "pay-option-1"

# Verify second option is now selected
- assertVisible:
id: "pay-option-1-selected"

# Verify first option is now deselected
- assertVisible:
id: "pay-option-0"

# Copy the network name from the selected option's accessibilityLabel
- copyTextFrom:
id: "pay-option-1-selected"

# Tap Continue to proceed
id: "pay-option-1"
- tapOn:
id: "pay-button-continue"
id: "pay-option-1"

# Handle personal details webview (KYC)
- extendedWaitUntil:
Expand Down Expand Up @@ -93,7 +77,7 @@ tags:
- copyTextFrom:
id: "pay-button-pay"
- assertTrue:
condition: "${maestro.copiedText == 'Pay $0.01'}"
condition: "${maestro.copiedText.startsWith('Pay $')}"

# Tap Pay, verify success
- runFlow:
Expand Down
36 changes: 10 additions & 26 deletions maestro/pay-tests/.maestro/pay_multiple_options_nokyc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ tags:
WPAY_CUSTOMER_KEY: ${WPAY_CUSTOMER_KEY_MULTI_NOKYC}
WPAY_MERCHANT_ID: ${WPAY_MERCHANT_ID_MULTI_NOKYC}

- clearState

- startRecording: "WalletConnect Pay Multiple Options No KYC"

# Open wallet, paste payment URL
Expand All @@ -19,44 +21,26 @@ tags:
# Wait for payment options to load
- extendedWaitUntil:
visible:
id: "pay-merchant-info"
id: "pay-select-option-header"
timeout: 15000

# Verify first option is pre-selected (index 0)
# Verify first option exists
- assertVisible:
id: "pay-option-0-selected"
id: "pay-option-0"

# Verify at least a second option exists (multiple options)
- assertVisible:
id: "pay-option-1"

# Verify "?" info button is NOT visible (no KYC merchant)
- assertNotVisible:
id: "pay-button-info"

# Verify "info required" badge is NOT visible (no KYC)
# Verify info-required marker is NOT visible (no KYC merchant)
- assertNotVisible:
id: "pay-info-required-badge"
id: "pay-option-info-required"

# Select the second option (index 1)
- tapOn:
id: "pay-option-1"

# Verify second option is now selected
- assertVisible:
id: "pay-option-1-selected"

# Verify first option is now deselected
- assertVisible:
id: "pay-option-0"

# Copy the network name from the selected option's accessibilityLabel
- copyTextFrom:
id: "pay-option-1-selected"

# Tap Continue to proceed
id: "pay-option-1"
- tapOn:
id: "pay-button-continue"
id: "pay-option-1"

# No KYC — goes straight to review screen
# Verify review screen shows the same token we selected
Expand All @@ -67,7 +51,7 @@ tags:
- copyTextFrom:
id: "pay-button-pay"
- assertTrue:
condition: "${maestro.copiedText == 'Pay $0.01'}"
condition: "${maestro.copiedText.startsWith('Pay $')}"

# Tap Pay, verify success
- runFlow:
Expand Down
4 changes: 3 additions & 1 deletion maestro/pay-tests/.maestro/pay_single_option_nokyc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ tags:
WPAY_CUSTOMER_KEY: ${WPAY_CUSTOMER_KEY_SINGLE_NOKYC}
WPAY_MERCHANT_ID: ${WPAY_MERCHANT_ID_SINGLE_NOKYC}

- clearState

- startRecording: "WalletConnect Pay Single Option No KYC"

# Open wallet, paste payment URL
Expand All @@ -32,7 +34,7 @@ tags:
- copyTextFrom:
id: "pay-button-pay"
- assertTrue:
condition: "${maestro.copiedText == 'Pay $0.01'}"
condition: "${maestro.copiedText.startsWith('Pay $')}"

# Tap Pay, verify success
- runFlow:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ tags:
WPAY_CUSTOMER_KEY: ${WPAY_CUSTOMER_KEY_SINGLE_NOKYC}
WPAY_MERCHANT_ID: ${WPAY_MERCHANT_ID_SINGLE_NOKYC}

- clearState

- startRecording: "WalletConnect Pay Single Option No KYC Deep Link"

# Open wallet via deep link with payment URL
Expand All @@ -32,7 +34,7 @@ tags:
- copyTextFrom:
id: "pay-button-pay"
- assertTrue:
condition: "${maestro.copiedText == 'Pay $0.01'}"
condition: "${maestro.copiedText.startsWith('Pay $')}"

# Tap Pay, verify success
- runFlow:
Expand Down
Loading