Skip to content

Commit

Permalink
ci(cypress): Added Config Testcases (#6622)
Browse files Browse the repository at this point in the history
Co-authored-by: Pa1NarK <[email protected]>
  • Loading branch information
Gnanasundari24 and pixincreate authored Nov 28, 2024
1 parent 9be0128 commit 2c86515
Show file tree
Hide file tree
Showing 7 changed files with 512 additions and 21 deletions.
38 changes: 28 additions & 10 deletions cypress-tests/cypress/e2e/PaymentTest/00024-ConnectorAgnostic.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe("Connector Agnostic Tests", () => {

it("Create Business Profile", () => {
cy.createBusinessProfileTest(
fixtures.createBusinessProfile,
fixtures.businessProfile.bpCreate,
globalState
);
});
Expand Down Expand Up @@ -85,7 +85,7 @@ describe("Connector Agnostic Tests", () => {

it("Create Business Profile", () => {
cy.createBusinessProfileTest(
fixtures.createBusinessProfile,
fixtures.businessProfile.bpCreate,
globalState
);
});
Expand All @@ -101,8 +101,12 @@ describe("Connector Agnostic Tests", () => {

it("Enable Connector Agnostic for Business Profile", () => {
cy.UpdateBusinessProfileTest(
fixtures.updateBusinessProfile,
true,
fixtures.businessProfile.bpUpdate,
true, // is_connector_agnostic_enabled
false, // collect_billing_address_from_wallet_connector
false, // collect_shipping_address_from_wallet_connector
false, // always_collect_billing_address_from_wallet_connector
false, // always_collect_shipping_address_from_wallet_connector
globalState
);
});
Expand Down Expand Up @@ -141,7 +145,10 @@ describe("Connector Agnostic Tests", () => {
});

it("Create Business Profile", () => {
cy.createBusinessProfileTest(fixtures.createBusinessProfile, globalState);
cy.createBusinessProfileTest(
fixtures.businessProfile.bpCreate,
globalState
);
});

it("connector-create-call-test", () => {
Expand All @@ -159,8 +166,12 @@ describe("Connector Agnostic Tests", () => {

it("Enable Connector Agnostic for Business Profile", () => {
cy.UpdateBusinessProfileTest(
fixtures.updateBusinessProfile,
true,
fixtures.businessProfile.bpUpdate,
true, // is_connector_agnostic_enabled
false, // collect_billing_address_from_wallet_connector
false, // collect_shipping_address_from_wallet_connector
false, // always_collect_billing_address_from_wallet_connector
false, // always_collect_shipping_address_from_wallet_connector
globalState
);
});
Expand Down Expand Up @@ -205,7 +216,10 @@ describe("Connector Agnostic Tests", () => {
});

it("Create Business Profile", () => {
cy.createBusinessProfileTest(fixtures.createBusinessProfile, globalState);
cy.createBusinessProfileTest(
fixtures.businessProfile.bpCreate,
globalState
);
});

it("connector-create-call-test", () => {
Expand All @@ -219,8 +233,12 @@ describe("Connector Agnostic Tests", () => {

it("Enable Connector Agnostic for Business Profile", () => {
cy.UpdateBusinessProfileTest(
fixtures.updateBusinessProfile,
true,
fixtures.businessProfile.bpUpdate,
true, // is_connector_agnostic_enabled
false, // collect_billing_address_from_wallet_connector
false, // collect_shipping_address_from_wallet_connector
false, // always_collect_billing_address_from_wallet_connector
false, // always_collect_shipping_address_from_wallet_connector
globalState
);
});
Expand Down
Loading

0 comments on commit 2c86515

Please sign in to comment.