Skip to content

Commit

Permalink
ci(cypress): Move MIT requests to configs and add Paybox Mandates (#6650
Browse files Browse the repository at this point in the history
)
  • Loading branch information
likhinbopanna authored Nov 27, 2024
1 parent 4b45d21 commit b1c4e30
Show file tree
Hide file tree
Showing 17 changed files with 988 additions and 43 deletions.
14 changes: 14 additions & 0 deletions cypress-tests/cypress/e2e/PaymentTest/00009-RefundPayment.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -815,8 +815,15 @@ describe("Card - Refund flow - No 3DS", () => {
});

it("Confirm No 3DS MIT", () => {
let data = getConnectorDetails(globalState.get("connectorId"))[
"card_pm"
]["MITAutoCapture"];
let req_data = data["Request"];
let res_data = data["Response"];
cy.mitForMandatesCallTest(
fixtures.mitConfirmBody,
req_data,
res_data,
7000,
true,
"automatic",
Expand All @@ -825,8 +832,15 @@ describe("Card - Refund flow - No 3DS", () => {
});

it("Confirm No 3DS MIT", () => {
let data = getConnectorDetails(globalState.get("connectorId"))[
"card_pm"
]["MITAutoCapture"];
let req_data = data["Request"];
let res_data = data["Response"];
cy.mitForMandatesCallTest(
fixtures.mitConfirmBody,
req_data,
res_data,
7000,
true,
"automatic",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,15 @@ describe("Card - SingleUse Mandates flow test", () => {
});

it("Confirm No 3DS MIT", () => {
let data = getConnectorDetails(globalState.get("connectorId"))[
"card_pm"
]["MITAutoCapture"];
let req_data = data["Request"];
let res_data = data["Response"];
cy.mitForMandatesCallTest(
fixtures.mitConfirmBody,
req_data,
res_data,
7000,
true,
"automatic",
Expand Down Expand Up @@ -112,8 +119,15 @@ describe("Card - SingleUse Mandates flow test", () => {
});

it("Confirm No 3DS MIT", () => {
let data = getConnectorDetails(globalState.get("connectorId"))[
"card_pm"
]["MITManualCapture"];
let req_data = data["Request"];
let res_data = data["Response"];
cy.mitForMandatesCallTest(
fixtures.mitConfirmBody,
req_data,
res_data,
6500,
true,
"manual",
Expand Down Expand Up @@ -197,8 +211,15 @@ describe("Card - SingleUse Mandates flow test", () => {
});

it("Confirm No 3DS MIT", () => {
let data = getConnectorDetails(globalState.get("connectorId"))[
"card_pm"
]["MITAutoCapture"];
let req_data = data["Request"];
let res_data = data["Response"];
cy.mitForMandatesCallTest(
fixtures.mitConfirmBody,
req_data,
res_data,
7000,
true,
"automatic",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,31 @@ describe("Card - MultiUse Mandates flow test", () => {
});

it("Confirm No 3DS MIT", () => {
let data = getConnectorDetails(globalState.get("connectorId"))[
"card_pm"
]["MITAutoCapture"];
let req_data = data["Request"];
let res_data = data["Response"];
cy.mitForMandatesCallTest(
fixtures.mitConfirmBody,
req_data,
res_data,
7000,
true,
"automatic",
globalState
);
});
it("Confirm No 3DS MIT", () => {
let data = getConnectorDetails(globalState.get("connectorId"))[
"card_pm"
]["MITAutoCapture"];
let req_data = data["Request"];
let res_data = data["Response"];
cy.mitForMandatesCallTest(
fixtures.mitConfirmBody,
req_data,
res_data,
7000,
true,
"automatic",
Expand Down Expand Up @@ -121,8 +135,15 @@ describe("Card - MultiUse Mandates flow test", () => {
});

it("Confirm No 3DS MIT 1", () => {
let data = getConnectorDetails(globalState.get("connectorId"))[
"card_pm"
]["MITManualCapture"];
let req_data = data["Request"];
let res_data = data["Response"];
cy.mitForMandatesCallTest(
fixtures.mitConfirmBody,
req_data,
res_data,
6500,
true,
"manual",
Expand All @@ -149,8 +170,15 @@ describe("Card - MultiUse Mandates flow test", () => {
});

it("Confirm No 3DS MIT 2", () => {
let data = getConnectorDetails(globalState.get("connectorId"))[
"card_pm"
]["MITManualCapture"];
let req_data = data["Request"];
let res_data = data["Response"];
cy.mitForMandatesCallTest(
fixtures.mitConfirmBody,
req_data,
res_data,
6500,
true,
"manual",
Expand Down Expand Up @@ -230,8 +258,15 @@ describe("Card - MultiUse Mandates flow test", () => {
});

it("Confirm No 3DS MIT", () => {
let data = getConnectorDetails(globalState.get("connectorId"))[
"card_pm"
]["MITAutoCapture"];
let req_data = data["Request"];
let res_data = data["Response"];
cy.mitForMandatesCallTest(
fixtures.mitConfirmBody,
req_data,
res_data,
6500,
true,
"automatic",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,15 @@ describe("Card - List and revoke Mandates flow test", () => {
});

it("Confirm No 3DS MIT", () => {
let data = getConnectorDetails(globalState.get("connectorId"))[
"card_pm"
]["MITAutoCapture"];
let req_data = data["Request"];
let res_data = data["Response"];
cy.mitForMandatesCallTest(
fixtures.mitConfirmBody,
req_data,
res_data,
7000,
true,
"automatic",
Expand Down Expand Up @@ -105,8 +112,15 @@ describe("Card - List and revoke Mandates flow test", () => {
});

it("Confirm No 3DS MIT", () => {
let data = getConnectorDetails(globalState.get("connectorId"))["card_pm"][
"MITAutoCapture"
];
let req_data = data["Request"];
let res_data = data["Response"];
cy.mitForMandatesCallTest(
fixtures.mitConfirmBody,
req_data,
res_data,
7000,
true,
"automatic",
Expand Down
21 changes: 21 additions & 0 deletions cypress-tests/cypress/e2e/PaymentTest/00015-ZeroAuthMandate.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,15 @@ describe("Card - SingleUse Mandates flow test", () => {
});

it("Confirm No 3DS MIT", () => {
let data = getConnectorDetails(globalState.get("connectorId"))[
"card_pm"
]["MITAutoCapture"];
let req_data = data["Request"];
let res_data = data["Response"];
cy.mitForMandatesCallTest(
fixtures.mitConfirmBody,
req_data,
res_data,
7000,
true,
"automatic",
Expand Down Expand Up @@ -89,17 +96,31 @@ describe("Card - SingleUse Mandates flow test", () => {
});

it("Confirm No 3DS MIT", () => {
let data = getConnectorDetails(globalState.get("connectorId"))[
"card_pm"
]["MITAutoCapture"];
let req_data = data["Request"];
let res_data = data["Response"];
cy.mitForMandatesCallTest(
fixtures.mitConfirmBody,
req_data,
res_data,
7000,
true,
"automatic",
globalState
);
});
it("Confirm No 3DS MIT", () => {
let data = getConnectorDetails(globalState.get("connectorId"))[
"card_pm"
]["MITAutoCapture"];
let req_data = data["Request"];
let res_data = data["Response"];
cy.mitForMandatesCallTest(
fixtures.mitConfirmBody,
req_data,
res_data,
7000,
true,
"automatic",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,15 @@ describe("Card - Mandates using Payment Method Id flow test", () => {
});

it("Confirm No 3DS MIT", () => {
let data = getConnectorDetails(globalState.get("connectorId"))[
"card_pm"
]["MITAutoCapture"];
let req_data = data["Request"];
let res_data = data["Response"];
cy.mitUsingPMId(
fixtures.pmIdConfirmBody,
req_data,
res_data,
7000,
true,
"automatic",
Expand Down Expand Up @@ -148,8 +155,15 @@ describe("Card - Mandates using Payment Method Id flow test", () => {
});

it("Confirm No 3DS MIT", () => {
let data = getConnectorDetails(globalState.get("connectorId"))[
"card_pm"
]["MITAutoCapture"];
let req_data = data["Request"];
let res_data = data["Response"];
cy.mitUsingPMId(
fixtures.pmIdConfirmBody,
req_data,
res_data,
7000,
true,
"automatic",
Expand Down Expand Up @@ -193,17 +207,31 @@ describe("Card - Mandates using Payment Method Id flow test", () => {
});

it("Confirm No 3DS MIT", () => {
let data = getConnectorDetails(globalState.get("connectorId"))[
"card_pm"
]["MITAutoCapture"];
let req_data = data["Request"];
let res_data = data["Response"];
cy.mitUsingPMId(
fixtures.pmIdConfirmBody,
req_data,
res_data,
7000,
true,
"automatic",
globalState
);
});
it("Confirm No 3DS MIT", () => {
let data = getConnectorDetails(globalState.get("connectorId"))[
"card_pm"
]["MITAutoCapture"];
let req_data = data["Request"];
let res_data = data["Response"];
cy.mitUsingPMId(
fixtures.pmIdConfirmBody,
req_data,
res_data,
7000,
true,
"automatic",
Expand Down Expand Up @@ -265,8 +293,15 @@ describe("Card - Mandates using Payment Method Id flow test", () => {
});

it("Confirm No 3DS MIT 1", () => {
let data = getConnectorDetails(globalState.get("connectorId"))[
"card_pm"
]["MITManualCapture"];
let req_data = data["Request"];
let res_data = data["Response"];
cy.mitUsingPMId(
fixtures.pmIdConfirmBody,
req_data,
res_data,
6500,
true,
"manual",
Expand All @@ -293,8 +328,15 @@ describe("Card - Mandates using Payment Method Id flow test", () => {
});

it("Confirm No 3DS MIT 2", () => {
let data = getConnectorDetails(globalState.get("connectorId"))[
"card_pm"
]["MITManualCapture"];
let req_data = data["Request"];
let res_data = data["Response"];
cy.mitUsingPMId(
fixtures.pmIdConfirmBody,
req_data,
res_data,
6500,
true,
"manual",
Expand Down Expand Up @@ -361,17 +403,31 @@ describe("Card - Mandates using Payment Method Id flow test", () => {
});

it("Confirm No 3DS MIT", () => {
let data = getConnectorDetails(globalState.get("connectorId"))[
"card_pm"
]["MITAutoCapture"];
let req_data = data["Request"];
let res_data = data["Response"];
cy.mitUsingPMId(
fixtures.pmIdConfirmBody,
req_data,
res_data,
7000,
true,
"automatic",
globalState
);
});
it("Confirm No 3DS MIT", () => {
let data = getConnectorDetails(globalState.get("connectorId"))[
"card_pm"
]["MITAutoCapture"];
let req_data = data["Request"];
let res_data = data["Response"];
cy.mitUsingPMId(
fixtures.pmIdConfirmBody,
req_data,
res_data,
7000,
true,
"automatic",
Expand Down Expand Up @@ -438,8 +494,15 @@ describe("Card - Mandates using Payment Method Id flow test", () => {
});

it("Confirm No 3DS MIT", () => {
let data = getConnectorDetails(globalState.get("connectorId"))[
"card_pm"
]["MITAutoCapture"];
let req_data = data["Request"];
let res_data = data["Response"];
cy.mitUsingPMId(
fixtures.pmIdConfirmBody,
req_data,
res_data,
7000,
true,
"automatic",
Expand Down
Loading

0 comments on commit b1c4e30

Please sign in to comment.