Skip to content

Commit

Permalink
ci: follow camelCase convention for shouldContinue
Browse files Browse the repository at this point in the history
  • Loading branch information
pixincreate committed Dec 2, 2024
1 parent 4cd32e8 commit 172a8d1
Show file tree
Hide file tree
Showing 23 changed files with 519 additions and 647 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ describe("Card - NoThreeDS payment flow test", () => {
});

context("Card-NoThreeDS payment flow test Create and confirm", () => {
let should_continue = true; // variable that will be used to skip tests if a previous test fails
let shouldContinue = true; // variable that will be used to skip tests if a previous test fails

beforeEach(function () {
if (!should_continue) {
if (!shouldContinue) {
this.skip();
}
});
Expand All @@ -37,8 +37,7 @@ describe("Card - NoThreeDS payment flow test", () => {
globalState
);

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

it("payment_methods-call-test", () => {
Expand All @@ -52,8 +51,7 @@ describe("Card - NoThreeDS payment flow test", () => {

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

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

it("retrieve-payment-call-test", () => {
Expand All @@ -66,10 +64,10 @@ describe("Card - NoThreeDS payment flow test", () => {
});

context("Card-NoThreeDS payment flow test Create+Confirm", () => {
let should_continue = true; // variable that will be used to skip tests if a previous test fails
let shouldContinue = true; // variable that will be used to skip tests if a previous test fails

beforeEach(function () {
if (!should_continue) {
if (!shouldContinue) {
this.skip();
}
});
Expand All @@ -87,8 +85,7 @@ describe("Card - NoThreeDS payment flow test", () => {
globalState
);

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

it("retrieve-payment-call-test", () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import getConnectorDetails, * as utils from "../PaymentUtils/Utils";
let globalState;

describe("Card - ThreeDS payment flow test", () => {
let should_continue = true; // variable that will be used to skip tests if a previous test fails
let shouldContinue = true; // variable that will be used to skip tests if a previous test fails

beforeEach(function () {
if (!should_continue) {
if (!shouldContinue) {
this.skip();
}
});
Expand Down Expand Up @@ -36,7 +36,7 @@ describe("Card - ThreeDS payment flow test", () => {
globalState
);

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

it("payment_methods-call-test", () => {
Expand All @@ -50,7 +50,7 @@ describe("Card - ThreeDS payment flow test", () => {

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

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

it("Handle redirection", () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ describe("Card - NoThreeDS Manual payment flow test", () => {

context("Card - NoThreeDS Manual Full Capture payment flow test", () => {
context("payment Create and Confirm", () => {
let should_continue = true; // variable that will be used to skip tests if a previous test fails
let shouldContinue = true; // variable that will be used to skip tests if a previous test fails

beforeEach(function () {
if (!should_continue) {
if (!shouldContinue) {
this.skip();
}
});
Expand All @@ -38,8 +38,8 @@ describe("Card - NoThreeDS Manual payment flow test", () => {
globalState
);

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

it("payment_methods-call-test", () => {
Expand All @@ -53,8 +53,8 @@ describe("Card - NoThreeDS Manual payment flow test", () => {

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

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

it("retrieve-payment-call-test", () => {
Expand All @@ -72,8 +72,8 @@ describe("Card - NoThreeDS Manual payment flow test", () => {

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

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

it("retrieve-payment-call-test", () => {
Expand All @@ -86,10 +86,10 @@ describe("Card - NoThreeDS Manual payment flow test", () => {
});

context("Payment Create+Confirm", () => {
let should_continue = true; // variable that will be used to skip tests if a previous test fails
let shouldContinue = true; // variable that will be used to skip tests if a previous test fails

beforeEach(function () {
if (!should_continue) {
if (!shouldContinue) {
this.skip();
}
});
Expand All @@ -107,8 +107,8 @@ describe("Card - NoThreeDS Manual payment flow test", () => {
globalState
);

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

it("retrieve-payment-call-test", () => {
Expand All @@ -126,8 +126,8 @@ describe("Card - NoThreeDS Manual payment flow test", () => {

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

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

it("retrieve-payment-call-test", () => {
Expand All @@ -144,10 +144,10 @@ describe("Card - NoThreeDS Manual payment flow test", () => {
"Card - NoThreeDS Manual Partial Capture payment flow test - Create and Confirm",
() => {
context("payment Create and Payment Confirm", () => {
let should_continue = true; // variable that will be used to skip tests if a previous test fails
let shouldContinue = true; // variable that will be used to skip tests if a previous test fails

beforeEach(function () {
if (!should_continue) {
if (!shouldContinue) {
this.skip();
}
});
Expand All @@ -165,8 +165,8 @@ describe("Card - NoThreeDS Manual payment flow test", () => {
globalState
);

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

it("payment_methods-call-test", () => {
Expand All @@ -180,8 +180,8 @@ describe("Card - NoThreeDS Manual payment flow test", () => {

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

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

it("retrieve-payment-call-test", () => {
Expand All @@ -199,8 +199,8 @@ describe("Card - NoThreeDS Manual payment flow test", () => {

cy.captureCallTest(fixtures.captureBody, data, 100, globalState);

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

it("retrieve-payment-call-test", () => {
Expand All @@ -213,10 +213,10 @@ describe("Card - NoThreeDS Manual payment flow test", () => {
});

context("payment + Confirm", () => {
let should_continue = true; // variable that will be used to skip tests if a previous test fails
let shouldContinue = true; // variable that will be used to skip tests if a previous test fails

beforeEach(function () {
if (!should_continue) {
if (!shouldContinue) {
this.skip();
}
});
Expand All @@ -234,8 +234,8 @@ describe("Card - NoThreeDS Manual payment flow test", () => {
globalState
);

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

it("retrieve-payment-call-test", () => {
Expand All @@ -253,8 +253,8 @@ describe("Card - NoThreeDS Manual payment flow test", () => {

cy.captureCallTest(fixtures.captureBody, data, 100, globalState);

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

it("retrieve-payment-call-test", () => {
Expand Down
38 changes: 16 additions & 22 deletions cypress-tests/cypress/e2e/PaymentTest/00007-VoidPayment.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ describe("Card - NoThreeDS Manual payment flow test", () => {
});

context("Card - void payment in Requires_capture state flow test", () => {
let should_continue = true; // variable that will be used to skip tests if a previous test fails
let shouldContinue = true; // variable that will be used to skip tests if a previous test fails

beforeEach(function () {
if (!should_continue) {
if (!shouldContinue) {
this.skip();
}
});
Expand All @@ -37,8 +37,7 @@ describe("Card - NoThreeDS Manual payment flow test", () => {
globalState
);

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

it("payment_methods-call-test", () => {
Expand All @@ -52,8 +51,7 @@ describe("Card - NoThreeDS Manual payment flow test", () => {

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

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

it("void-call-test", () => {
Expand All @@ -63,18 +61,17 @@ describe("Card - NoThreeDS Manual payment flow test", () => {

cy.voidCallTest(fixtures.voidBody, data, globalState);

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

context(
"Card - void payment in Requires_payment_method state flow test",
() => {
let should_continue = true; // variable that will be used to skip tests if a previous test fails
let shouldContinue = true; // variable that will be used to skip tests if a previous test fails

beforeEach(function () {
if (!should_continue) {
if (!shouldContinue) {
this.skip();
}
});
Expand All @@ -92,8 +89,8 @@ describe("Card - NoThreeDS Manual payment flow test", () => {
globalState
);

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

it("payment_methods-call-test", () => {
Expand All @@ -107,17 +104,17 @@ describe("Card - NoThreeDS Manual payment flow test", () => {

cy.voidCallTest(fixtures.voidBody, data, globalState);

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

context("Card - void payment in success state flow test", () => {
let should_continue = true; // variable that will be used to skip tests if a previous test fails
let shouldContinue = true; // variable that will be used to skip tests if a previous test fails

beforeEach(function () {
if (!should_continue) {
if (!shouldContinue) {
this.skip();
}
});
Expand All @@ -135,8 +132,7 @@ describe("Card - NoThreeDS Manual payment flow test", () => {
globalState
);

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

it("payment_methods-call-test", () => {
Expand All @@ -150,8 +146,7 @@ describe("Card - NoThreeDS Manual payment flow test", () => {

cy.confirmCallTest(fixtures.confirmBody, data, false, globalState);

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

it("void-call-test", () => {
Expand All @@ -161,8 +156,7 @@ describe("Card - NoThreeDS Manual payment flow test", () => {

cy.voidCallTest(fixtures.voidBody, data, globalState);

if (should_continue)
should_continue = utils.should_continue_further(data);
if (shouldContinue) shouldContinue = utils.should_continue_further(data);
});
});
});
8 changes: 4 additions & 4 deletions cypress-tests/cypress/e2e/PaymentTest/00008-SyncPayment.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import getConnectorDetails, * as utils from "../PaymentUtils/Utils";
let globalState;

describe("Card - Sync payment flow test", () => {
let should_continue = true; // variable that will be used to skip tests if a previous test fails
let shouldContinue = true; // variable that will be used to skip tests if a previous test fails

beforeEach(function () {
if (!should_continue) {
if (!shouldContinue) {
this.skip();
}
});
Expand All @@ -35,7 +35,7 @@ describe("Card - Sync payment flow test", () => {
globalState
);

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

it("payment_methods-call-test", () => {
Expand All @@ -49,7 +49,7 @@ describe("Card - Sync payment flow test", () => {

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

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

it("retrieve-payment-call-test", () => {
Expand Down
Loading

0 comments on commit 172a8d1

Please sign in to comment.