Skip to content

Commit

Permalink
Revert "refactor: do not hard code configs"
Browse files Browse the repository at this point in the history
This reverts commit 490911c.
  • Loading branch information
pixincreate committed Dec 2, 2024
1 parent 4d026e8 commit cd0a34c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
22 changes: 19 additions & 3 deletions cypress-tests/cypress/e2e/PaymentTest/00026-IncrementalAuth.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ describe.skip("[Payment] Incremental Auth", () => {

const newData = {
...data,
Configs: { CONNECTOR_CREDENTIAL: { value: "connector_2" } },
Request: {
...data.Request,
request_incremental_authorization: true,
Expand All @@ -54,7 +55,12 @@ describe.skip("[Payment] Incremental Auth", () => {
"card_pm"
]["SaveCardUseNo3DSManualCaptureOffSession"];

cy.confirmCallTest(fixtures.confirmBody, data, true, globalState);
const newData = {
...data,
Configs: { CONNECTOR_CREDENTIAL: { value: "connector_2" } },
};

cy.confirmCallTest(fixtures.confirmBody, newData, true, globalState);

if (shouldContinue) shouldContinue = utils.should_continue_further(data);
});
Expand Down Expand Up @@ -94,9 +100,14 @@ describe.skip("[Payment] Incremental Auth", () => {
"card_pm"
]["PaymentIntentOffSession"];

const newData = {
...data,
Configs: { CONNECTOR_CREDENTIAL: { value: "connector_2" } },
};

cy.createPaymentIntentTest(
fixtures.createPaymentBody,
data,
newData,
"no_three_ds",
"manual",
globalState
Expand All @@ -109,9 +120,14 @@ describe.skip("[Payment] Incremental Auth", () => {
"card_pm"
]["SaveCardUseNo3DSManualCaptureOffSession"];

const newData = {
...data,
Configs: { CONNECTOR_CREDENTIAL: { value: "connector_2" } },
};

cy.saveCardConfirmCallTest(
fixtures.saveCardConfirmBody,
data,
newData,
globalState
);

Expand Down
9 changes: 1 addition & 8 deletions cypress-tests/cypress/e2e/PaymentUtils/Cybersource.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,6 @@ export const connectorDetails = {
},
},
PaymentIntentOffSession: {
Configs: {
CONNECTOR_CREDENTIAL: {
specName: "incrementalAuth",
value: "connector_2",
},
},
Request: {
currency: "USD",
amount: 6500,
Expand Down Expand Up @@ -725,8 +719,7 @@ export const connectorDetails = {
SaveCardUseNo3DSManualCaptureOffSession: {
Configs: {
CONNECTOR_CREDENTIAL: {
specName: "incrementalAuth",
value: "connector_2",
value: "connector_1",
},
},
Request: {
Expand Down

0 comments on commit cd0a34c

Please sign in to comment.