Skip to content

Commit

Permalink
remove commented lines, skip for crazy-domains
Browse files Browse the repository at this point in the history
  • Loading branch information
sangeetha-nayak committed Jan 4, 2024
1 parent 3498106 commit 73b0bda
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 27 deletions.
32 changes: 6 additions & 26 deletions tests/cypress/integration/Home/commerceHomePage.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ describe("Commerce Home Page- Coming soon mode", () => {

describe("Commerce Home Page- Live Mode", () => {
before(() => {
if ( pluginId == 'crazy-domains' ) {
this.skip();
}
cy.exec(`npx wp-env run cli wp plugin deactivate woocommerce`, {
failOnNonZeroExit: false,
});
Expand Down Expand Up @@ -136,6 +139,9 @@ describe("Commerce Home Page- Live Mode", () => {

describe("Commerce Home Page- Next Steps", () => {
before(() => {
if ( pluginId == 'crazy-domains' ) {
this.skip();
}
cy.exec(`npx wp-env run cli wp plugin deactivate woocommerce`, {
failOnNonZeroExit: false,
});
Expand Down Expand Up @@ -202,15 +208,6 @@ describe("Commerce Home Page- Next Steps", () => {
cy.visit(
"/wp-admin/index.php?page=nfd-onboarding#/wp-setup/step/get-started/experience"
);
// cy.exec(
// `npx wp-env run cli wp option delete onboarding_experience_level`,
// { failOnNonZeroExit: false }
// );
// cy.exec(
// `npx wp-env run cli wp option set onboarding_experience_level 1`,
// { timeout: customCommandTimeout }
// );

cy.get("#inspector-radio-control-0-0", {
timeout: customCommandTimeout,
}).click({ force: true });
Expand Down Expand Up @@ -239,14 +236,6 @@ describe("Commerce Home Page- Next Steps", () => {
});

it("Verify Signup for Bluehost WordPress Academy step", () => {
// cy.exec(
// `npx wp-env run cli wp option delete onboarding_experience_level`,
// { failOnNonZeroExit: false }
// );
// cy.exec(
// `npx wp-env run cli wp option set onboarding_experience_level 1`,
// { timeout: customCommandTimeout }
// );
if (pluginId == "bluehost") {
cy.intercept(APIList.bh_academy).as("events");
cy.contains(
Expand Down Expand Up @@ -276,15 +265,6 @@ describe("Commerce Home Page- Next Steps", () => {
});

it("Verify Signup for Wordpress SEO Academy step", () => {
// cy.exec(
// `npx wp-env run cli wp option delete onboarding_experience_level`,
// { failOnNonZeroExit: false }
// );
// cy.exec(
// `npx wp-env run cli wp option set onboarding_experience_level 1`,
// { timeout: customCommandTimeout }
// );

cy.intercept(APIList.yoast_seo_academy).as("events");
cy.contains(
".nfd-grid.nfd-gap-4 ul li a",
Expand Down
5 changes: 4 additions & 1 deletion tests/cypress/integration/Store/storePage.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ const pluginId = GetPluginId();
const appId = getAppId();

describe( 'Store Page- WooCommerce is deactivated/uninstalled', () => {
before( () => {
before(() => {
if ( pluginId == 'crazy-domains' ) {
this.skip();
}
cy.exec( `npx wp-env run cli wp plugin deactivate woocommerce`, {
failOnNonZeroExit: false,
});
Expand Down

0 comments on commit 73b0bda

Please sign in to comment.