juspay / juspay/hyperswitch-client-core

Implement Detox tests for payment redirection scenarios

Open
#361 0 comments 0 reactions 0 assignees View on GitHub
good first issue hacktoberfest
Dominant language
ReScript
Stars
29
Forks
30
Avg merge
2d 3h
Merged PRs (30d)
10

Description

Create Detox tests for payment redirection flows commonly used in payment
processing:

### Test Cases:
1. **3DS Authentication Flow**
- Card requires 3D Secure verification
- External browser/webview redirection
- Return to app after authentication

2. **Bank Transfer Redirection**
- Redirect to bank's authentication page
- Handle external app switching
- Verify successful return

3. **Payment Method Redirection**
- External payment provider flows
- Deep link handling on return
- Status verification after redirection

Expected Outcome:
- Robust redirection flow testing
- Handle external app interactions
- Verify deep link returns

Files to Create:
- detox-tests/e2e/redirectionFlow.test.js
- detox-tests/helpers/redirectionHelpers.js

Technical Challenges:
- External app interaction testing
- Deep link simulation
- Async flow handling with timeouts

Acceptance Criteria:
- [ ] Tests handle external app launches
- [ ] Deep link returns are properly tested
- [ ] Timeout scenarios are covered
- [ ] Browser redirection flows work correctly

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the existing Detox setup and running its current end-to-end tests. Then use detox-tests/e2e/redirectionFlow.test.js and detox-tests/helpers/redirectionHelpers.js as the implementation points, covering the listed 3DS, bank-transfer, provider, deep-link, external-app, and timeout scenarios. Done means all acceptance criteria pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
payments, testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.