Skip to content

Commit

Permalink
chore: address latest changes with my changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pixincreate committed Nov 26, 2024
1 parent 9bed7c2 commit 220c804
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,20 +89,19 @@ describe("Card - List and revoke Mandates flow test", () => {
let data = getConnectorDetails(globalState.get("connectorId"))["card_pm"][
"ZeroAuthMandate"
];
let req_data = data["Request"];
let res_data = data["Response"];

cy.citForMandatesCallTest(
fixtures.citConfirmBody,
req_data,
res_data,
data,
0,
true,
"automatic",
"setup_mandate",
globalState
);

if (should_continue)
should_continue = utils.should_continue_further(res_data);
should_continue = utils.should_continue_further(data);
});

it("list-mandate-call-test", () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,18 +120,11 @@ describe("Card - Mandates using Network Transaction Id flow test", () => {
let data = getConnectorDetails(globalState.get("connectorId"))[
"card_pm"
]["Capture"];
let req_data = data["Request"];
let res_data = data["Response"];

cy.captureCallTest(
fixtures.captureBody,
req_data,
res_data,
6500,
globalState
);
cy.captureCallTest(fixtures.captureBody, data, 6500, globalState);

if (should_continue)
should_continue = utils.should_continue_further(res_data);
should_continue = utils.should_continue_further(data);
});

it("Confirm No 3DS MIT 2", () => {
Expand All @@ -148,18 +141,11 @@ describe("Card - Mandates using Network Transaction Id flow test", () => {
let data = getConnectorDetails(globalState.get("connectorId"))[
"card_pm"
]["Capture"];
let req_data = data["Request"];
let res_data = data["Response"];

cy.captureCallTest(
fixtures.captureBody,
req_data,
res_data,
6500,
globalState
);
cy.captureCallTest(fixtures.captureBody, data, 6500, globalState);

if (should_continue)
should_continue = utils.should_continue_further(res_data);
should_continue = utils.should_continue_further(data);
});
}
);
Expand Down

0 comments on commit 220c804

Please sign in to comment.