test: implement detox tests for payment redirection scenarios (#361)#482
Open
Kavin-Charles wants to merge 2 commits into
Open
test: implement detox tests for payment redirection scenarios (#361)#482Kavin-Charles wants to merge 2 commits into
Kavin-Charles wants to merge 2 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of Change
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
enterCardDetailsso it runs through the actual native inputs instead of just skipping to the redirect.Screenshots / Recordings
N/A - just e2e tests
Affected Area & Impact
Android PR / status (if any): N/A
iOS PR / status (if any): N/A
Shared Codebase PR / status (if any): N/A
Testing
Notes:
Types are clean and it runs smoothly locally!
Checklist