Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

test(cypress): add RealTimePayment DuitNow coverage for fiuu (#12346)

HS-QUALIBOTd4321ea846be
diff --git a/cypress-tests/cypress/e2e/spec/Payment/31-RealTimePayment.cy.js b/cypress-tests/cypress/e2e/spec/Payment/31-RealTimePayment.cy.js
index 7839c58eee..93d8c0a20d 100644
--- a/cypress-tests/cypress/e2e/spec/Payment/31-RealTimePayment.cy.js
+++ b/cypress-tests/cypress/e2e/spec/Payment/31-RealTimePayment.cy.js
@@ -11,7 +11,7 @@ describe("Real Time Payment", () => {
});
});
- after("flush global state", () => {
+ afterEach("flush global state", () => {
cy.task("setGlobalState", globalState.data);
});
@@ -58,5 +58,13 @@ describe("Real Time Payment", () => {
if (shouldContinue) shouldContinue = utils.should_continue_further(data);
});
+
+ it("Retrieve Payment", () => {
+ const data = getConnectorDetails(globalState.get("connectorId"))[
+ "real_time_payment_pm"
+ ]["DuitNow"];
+
+ cy.retrievePaymentCallTest({ globalState, data });
+ });
});
});