test(cypress): add Helcim refunds and mandates coverage#13157
test(cypress): add Helcim refunds and mandates coverage#13157venkatakarthikm-maker wants to merge 2 commits into
Conversation
Changed Files
|
|
💡 Document the Helcim test exclusion rationale in code comments The PR adds excellent inline documentation in Also verify that the |
Code Review: Helcim Test ExclusionsAssessmentClean, well-documented test configuration changes that appropriately exclude Helcim from refund and mandate tests due to sandbox limitations. Findings1. [nit] Consistent comment format The comments explaining Helcim's sandbox limitation are thorough and include the external reference to hyperswitch-prism tests. Good practice! 2. [nit] Code duplication in skip logic The skip logic pattern is repeated across multiple test files. Consider extracting this into a shared utility function in // Potential helper in Utils.js
export function skipIfExcluded(connectorId, exclusionList) {
return cy.task("getGlobalState").then((state) => {
const globalState = new State(state);
if (shouldExcludeConnector(globalState.get("connectorId"), exclusionList)) {
this.skip();
}
return globalState;
});
}This isn't blocking since it's test code and follows existing patterns in the codebase. VerdictLGTM. The exclusion is well-justified with documentation links, and the implementation correctly handles the Cypress async patterns with |
Automated Code Review ResultsTeam: Test Automation (Cypress) Findings Summary✅ Well-Structured Connector Exclusion Pattern Review Notes📝 Clear Documentation of Exclusions
This pattern should be used for all future connector exclusions. 🔍 Implementation Review Utils.js (line ~70): EXCLUDE: {
REFUND: ["helcim"],
MANDATE_ID_TEST: [],
// ...
}Clean structure allowing future exclusions without structural changes. 09-RefundPayment.cy.js (before hook): if (utils.shouldExcludeConnector(globalState, "REFUND")) {
cy.log("Skipping refund test for excluded connector");
return;
}💡 Enhancement Suggestion utils.skipWithReason(globalState, "REFUND");
// Logs: "Skipping: Helcim sandbox limitation: transactions never reach closed/settled batch state"
Overall Assessment: Proper handling of third-party limitations. Clean, maintainable code. Approved. |
Review SummaryClassification: Analytics team — Cypress test configuration ✅ No blocking issues FindingsThis PR correctly excludes Helcim from refund and mandate tests due to documented sandbox limitations. The approach is consistent with existing patterns in the codebase:
Minor ObservationThe |
Type of Change
Description
Additional Changes
Motivation and Context
How did you test it?
Checklist
cargo +nightly fmt --allcargo clippyFixes #13158