Skip to content

test: implement detox tests for payment redirection scenarios (#361)#482

Open
Kavin-Charles wants to merge 2 commits into
juspay:mainfrom
Kavin-Charles:test/issue-361-redirection
Open

test: implement detox tests for payment redirection scenarios (#361)#482
Kavin-Charles wants to merge 2 commits into
juspay:mainfrom
Kavin-Charles:test/issue-361-redirection

Conversation

@Kavin-Charles

Copy link
Copy Markdown

Type of Change

  • Bugfix
  • Feature
  • Refactor
  • Chore
  • CI/CD
  • Docs

What & Why

Closes #361

Added the missing Detox tests for payment redirection flows.

When the app kicks out to a webview for a 3DS challenge or hops over to a bank app, Detox usually freaks out or hangs. I added tests where we formally disable sync, mock the delay, and then fire a deep link payload back into the app using device.openURL() to verify the SDK picks up the success statuses correctly.

Also set it up using enterCardDetails so it runs through the actual native inputs instead of just skipping to the redirect.


Screenshots / Recordings

N/A - just e2e tests


Affected Area & Impact

  • Client Core
  • Shared Codebase
  • Android
  • iOS

Android PR / status (if any): N/A
iOS PR / status (if any): N/A
Shared Codebase PR / status (if any): N/A


Testing

  • JS bundle built
  • Tested in Android app
  • Tested in iOS app

Notes:
Types are clean and it runs smoothly locally!


Checklist

  • Tested in consuming Android app
  • Tested in consuming iOS app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Detox tests for payment redirection scenarios

1 participant