You are working on the hyperswitch repository (Rust payment processing system).…
- User
You are working on the hyperswitch repository (Rust payment processing system).
REPOSITORY SETUP:
- Repository: juspay/hyperswitch
- Working directory: ./repos/hyperswitch_pool_8 (already cloned)
- Base commit: 1991e38457f713daeb280e22b2dd19c2944840b6
- Task ID: juspay__hyperswitch-8595
- Version: v1.115.0
TASK DESCRIPTION: Bug: fix(cypress): cypress tests for incremental auth getting skipped for all connectors
📌 Problem
The Cypress test suite
00029-IncrementalAuth.cy.jsis currently being entirely, even though it should work forcybersource.DETAILED CONTEXT & HINTS:
Type of Change
- Bugfix
- New feature
- Enhancement
- Refactoring
- Dependency updates
- Documentation
- CI/CD
Description
This PR introduces a set of improvements and refactors in the Cypress test suite specifically for Incremental Authorization test cases.
✅ Key Changes:
-
Connector Inclusion List for Incremental Auth
- Introduced a new list
INCREMENTAL_AUTHinUtils.jsunderCONNECTOR_LISTS.INCLUDE. - This inclusion list determines which connectors support Incremental Authorization and should execute related tests.
- Introduced a new list
-
Dynamic Skipping of Tests Based on Connector Support
- Refactored the test flow to dynamically
skip()test blocks at runtime if the connector isn't included inINCREMENTAL_AUTH. - Prevents false negatives and unwanted test runs on unsupported connectors (like CyberSource with known
MULTIPLE_CONNECTORSissues).
- Refactored the test flow to dynamically
-
Refactored
beforeandafterHooks- Replaced arrow functions with regular functions in
before()hooks to correctly utilize .
- Replaced arrow functions with regular functions in
Assistant
I'll help you fix the Cypress tests for incremental auth that are being skipped for all connectors. Let me start by understanding the problem and exploring the relevant files.
First, let me create a plan for addressing this issue:
Assistant
Let me first examine the problematic test file to understand the current implementation:
Assistant
Let me search for the incremental auth test file in the repository:
Assistant
Now let me examine the incremental auth test file:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.