diff --git a/tests/cypress/integration/4-design-steps/colors-step.cy.js b/tests/cypress/integration/4-design-steps/colors-step.cy.js
index 4655a7b90..d668ca914 100644
--- a/tests/cypress/integration/4-design-steps/colors-step.cy.js
+++ b/tests/cypress/integration/4-design-steps/colors-step.cy.js
@@ -1,25 +1,18 @@
//
-import { DrawerActivityForSubMenu } from '../../wp-module-support/drawer.cy';
+import { DrawerActivityForSubMenu } from '../wp-module-support/drawer.cy';
import {
CheckHelpPanelLinks,
CheckIllustrationPanel,
CheckInfoPanel,
CheckIntroPanel,
-} from '../../wp-module-support/sidebar.cy';
+} from '../wp-module-support/sidebar.cy';
describe( 'Colors Step Test', function () {
before( () => {
cy.visit(
- 'wp-admin/?page=nfd-onboarding&flow=ecommerce#/wp-setup/step/design/theme-styles/preview'
+ 'wp-admin/?page=nfd-onboarding#/wp-setup/step/design/colors'
);
- } );
-
- it( 'Navigate to Colors Step', () => {
- cy.wait( 10000 );
- // Have to select the Preview Step Checkbox to activate Colors and Typgoraphy
- cy.get( '.theme-styles-preview__checkbox__label' ).click();
- cy.get( '.navigation-buttons_next' ).click();
- cy.wait( 10000 );
+ cy.wait(6000);
} );
it( 'Check Drawer Activity', () => {
@@ -57,7 +50,7 @@ describe( 'Colors Step Test', function () {
cy.get( '.custom-palette__top' ).scrollIntoView().click();
let previewCount = 0;
- const className = '.custom-palette__below-row';
+ const className = '.custom-palette__below__row';
const arr = cy.get( className );
// Select Colors for custom Palette
diff --git a/tests/cypress/integration/4-design-steps/continue-onboarding.cy.js b/tests/cypress/integration/4-design-steps/continue-onboarding.cy.js
index a2acf33e3..4fd3e87d2 100644
--- a/tests/cypress/integration/4-design-steps/continue-onboarding.cy.js
+++ b/tests/cypress/integration/4-design-steps/continue-onboarding.cy.js
@@ -1,12 +1,12 @@
describe( 'Theme change from wp dashboard and continue onboarding flow', function () {
- before( () => {
- cy.exec( 'npx wp-env run cli wp theme activate twentytwentyone' );
- cy.visit(
- 'wp-admin/?page=nfd-onboarding&flow=ecommerce#/wp-setup/step/design/theme-styles/menu'
- );
- } );
+ // before( () => {
+ // cy.exec( 'npx wp-env run cli wp theme activate twentytwentyone' );
+ // cy.visit(
+ // 'wp-admin/?page=nfd-onboarding&flow=ecommerce#/wp-setup/step/design/theme-styles/menu'
+ // );
+ // } );
- it( 'Click on exit to wordpress and go on to homepage', () => {
+ it.skip( 'Click on exit to wordpress and go on to homepage', () => {
cy.get( '.components-modal__content', { timeout: 40000 } ).should(
'be.visible'
);
@@ -14,7 +14,7 @@ describe( 'Theme change from wp dashboard and continue onboarding flow', functio
cy.url( { timeout: 12000 } ).should( 'contain', '#/home' );
} );
- it( 'Change the theme from dashboard and then click on continue to continue', () => {
+ it.skip( 'Change the theme from dashboard and then click on continue to continue', () => {
cy.visit(
'wp-admin/?page=nfd-onboarding&flow=ecommerce#/wp-setup/step/design/theme-styles/menu'
);
@@ -24,14 +24,14 @@ describe( 'Theme change from wp dashboard and continue onboarding flow', functio
cy.contains( 'button', 'Continue' ).click();
} );
- it( 'Check the Heading title of theme style', () => {
+ it.skip( 'Check the Heading title of theme style', () => {
cy.get( '.nfd-main-heading__title', { timeout: 5000 } ).should(
'contain',
'Lets tailor your theme for the perfect fit'
);
} );
- it( 'Change the theme from dashboard and then click on X to continue', () => {
+ it.skip( 'Change the theme from dashboard and then click on X to continue', () => {
cy.exec( 'npx wp-env run cli wp theme activate twentytwentyone' );
cy.get( '.nfd-onboarding-drawer__panel-menu-link' ).eq( 2 ).click(); // to click on Home Page Menu Layout
cy.get( '.components-modal__content', { timeout: 40000 } ).should(
@@ -40,14 +40,14 @@ describe( 'Theme change from wp dashboard and continue onboarding flow', functio
cy.get( '.components-modal__header > .components-button' ).click();
} );
- it( 'Check the Heading title of HomePage Menu', () => {
+ it.skip( 'Check the Heading title of HomePage Menu', () => {
cy.get( '.nfd-main-heading__title', { timeout: 5000 } ).should(
'contain',
'There’s no place like a great home page'
);
} );
- it( 'Change the theme from dashboard and then click on esc from keyboard to continue', () => {
+ it.skip( 'Change the theme from dashboard and then click on esc from keyboard to continue', () => {
cy.exec( 'npx wp-env run cli wp theme activate twentytwentyone' );
cy.get( '.nfd-onboarding-drawer__panel-menu-link' ).eq( 3 ).click(); // to click on Page Layout
cy.get( '.components-modal__content', { timeout: 40000 } ).should(
@@ -56,7 +56,7 @@ describe( 'Theme change from wp dashboard and continue onboarding flow', functio
cy.get( '.components-modal__content' ).type( '{esc}' );
} );
- it( 'Check the Heading title of Page Layout', () => {
+ it.skip( 'Check the Heading title of Page Layout', () => {
cy.get( '.nfd-main-heading__title', { timeout: 5000 } ).should(
'contain',
'You have ideas, we have page templates'
diff --git a/tests/cypress/integration/4-design-steps/header-menu.cy.js b/tests/cypress/integration/4-design-steps/header-menu.cy.js
index f64cd5a70..daa36b7c8 100644
--- a/tests/cypress/integration/4-design-steps/header-menu.cy.js
+++ b/tests/cypress/integration/4-design-steps/header-menu.cy.js
@@ -1,16 +1,16 @@
//
-import { DrawerActivityForSubMenu } from '../../wp-module-support/drawer.cy';
+import { DrawerActivityForSubMenu } from '../wp-module-support/drawer.cy';
import {
CheckHelpPanelLinks,
CheckIllustrationPanel,
CheckInfoPanel,
CheckIntroPanel,
-} from '../../wp-module-support/sidebar.cy';
+} from '../wp-module-support/sidebar.cy';
describe( 'Header menu Page', function () {
before( () => {
cy.visit(
- 'wp-admin/?page=nfd-onboarding&flow=ecommerce#/wp-setup/step/design/header-menu'
+ 'wp-admin/?page=nfd-onboarding#/wp-setup/step/design/header-menu'
);
cy.wait( 10000 );
} );
@@ -18,7 +18,7 @@ describe( 'Header menu Page', function () {
it( 'Check Drawer Activity', () => {
DrawerActivityForSubMenu(
'Design',
- '.theme-header-menu-preview--drawer',
+ '.nfd-onboarding-drawer__panel-inside',
'.theme-header-menu-preview--drawer__list__item',
4
);
@@ -41,6 +41,7 @@ describe( 'Header menu Page', function () {
const arr = cy.get( classname );
arr.each( () => {
cy.get( classname ).eq( previewCount ).click();
+ cy.wait(3000);
cy.get( classname )
.eq( previewCount )
.find( classname.concat( '__title-bar--selected' ) )
@@ -49,7 +50,7 @@ describe( 'Header menu Page', function () {
} );
} );
- it( 'Check navigation back button is visible and go one step back', () => {
+ it.skip( 'Check navigation back button is visible and go one step back', () => {
cy.get( '.navigation-buttons_back' ).should( 'be.visible' ).click();
cy.wait( 3000 );
cy.url().should( 'not.contain', '/wp-setup/step/design/header-menu' );
@@ -57,7 +58,7 @@ describe( 'Header menu Page', function () {
cy.wait( 3000 );
} );
- it( 'Check if Navigation Next button is visible and go one step next', () => {
+ it.skip( 'Check if Navigation Next button is visible and go one step next', () => {
cy.get( '.navigation-buttons_next' ).should( 'be.visible' ).click();
cy.wait( 1000 );
cy.url().should( 'not.contain', '/wp-setup/step/design/header-menu' );
diff --git a/tests/cypress/integration/4-design-steps/homepage-styles.cy.js b/tests/cypress/integration/4-design-steps/homepage-styles.cy.js
index 6cece6753..c9192d81e 100644
--- a/tests/cypress/integration/4-design-steps/homepage-styles.cy.js
+++ b/tests/cypress/integration/4-design-steps/homepage-styles.cy.js
@@ -1,18 +1,18 @@
//
-import { DrawerActivityForMenu } from '../../wp-module-support/drawer.cy';
-import { CheckHeadingSubheading } from '../../wp-module-support/header.cy';
+import { DrawerActivityForMenu } from '../wp-module-support/drawer.cy';
+import { CheckHeadingSubheading } from '../wp-module-support/header.cy';
import {
CheckHelpPanelLinks,
CheckIllustrationPanel,
CheckInfoPanel,
CheckIntroPanel,
-} from '../../wp-module-support/sidebar.cy';
+} from '../wp-module-support/sidebar.cy';
describe( 'Homepage Styles Page', function () {
before( () => {
cy.visit(
- 'wp-admin/?page=nfd-onboarding&flow=ecommerce#/wp-setup/step/design/homepage-menu'
+ 'wp-admin/?page=nfd-onboarding#/wp-setup/step/design/homepage-menu'
);
cy.wait( 15000 );
} );
@@ -24,7 +24,7 @@ describe( 'Homepage Styles Page', function () {
it( 'Check Drawer Activity', () => {
DrawerActivityForMenu(
'Onboarding Menu',
- ':nth-child(3)',
+ ':nth-child(5)',
'Homepage Layouts'
);
} );
diff --git a/tests/cypress/integration/4-design-steps/site-pages.cy.js b/tests/cypress/integration/4-design-steps/site-pages.cy.js
index 192a618df..2d791379c 100644
--- a/tests/cypress/integration/4-design-steps/site-pages.cy.js
+++ b/tests/cypress/integration/4-design-steps/site-pages.cy.js
@@ -1,17 +1,17 @@
//
-import { DrawerActivityForMenu } from '../../wp-module-support/drawer.cy';
-import { CheckHeadingSubheading } from '../../wp-module-support/header.cy';
+import { DrawerActivityForMenu } from '../wp-module-support/drawer.cy';
+import { CheckHeadingSubheading } from '../wp-module-support/header.cy';
import {
CheckHelpPanelLinks,
CheckIllustrationPanel,
CheckInfoPanel,
CheckIntroPanel,
-} from '../../wp-module-support/sidebar.cy';
+} from '../wp-module-support/sidebar.cy';
describe( 'Site Pages', function () {
before( () => {
cy.visit(
- 'wp-admin/?page=nfd-onboarding&flow=ecommerce#/wp-setup/step/design/site-pages'
+ 'wp-admin/?page=nfd-onboarding#/wp-setup/step/design/site-pages'
);
cy.wait( 10000 );
} );
@@ -23,7 +23,7 @@ describe( 'Site Pages', function () {
it( 'Check Drawer Activity', () => {
DrawerActivityForMenu(
'Onboarding Menu',
- ':nth-child(4)',
+ ':nth-child(6)',
'Page Layouts'
);
} );
@@ -43,6 +43,7 @@ describe( 'Site Pages', function () {
arr.each( () => {
cy.get( className )
.eq( previewCount )
+ .scrollIntoView()
.find( '.components-checkbox-control' )
.find( 'label' )
.click();
diff --git a/tests/cypress/integration/4-design-steps/theme-styles-menu.cy.js b/tests/cypress/integration/4-design-steps/theme-styles-menu.cy.js
new file mode 100644
index 000000000..c15580ae4
--- /dev/null
+++ b/tests/cypress/integration/4-design-steps/theme-styles-menu.cy.js
@@ -0,0 +1,55 @@
+//
+import { DrawerActivityForMenu } from '../wp-module-support/drawer.cy';
+import { CheckHeadingSubheading } from '../wp-module-support/header.cy';
+import {
+ CheckHelpPanelLinks,
+ CheckIllustrationPanel,
+ CheckInfoPanel,
+ CheckIntroPanel,
+} from '../wp-module-support/sidebar.cy';
+
+describe( 'Theme Styles Menu', function () {
+ before( () => {
+ cy.visit(
+ 'wp-admin/?page=nfd-onboarding#/wp-setup/step/design/theme-styles/menu'
+ );
+ cy.wait( 5000 );
+ } );
+
+ it( 'Check Drawer Activity', () => {
+ DrawerActivityForMenu(
+ 'Onboarding Menu',
+ ':nth-child(1)',
+ 'Theme Styles'
+ );
+ } );
+
+ it( 'Check to make sure sidebar opens, content is in place and close sidebar', () => {
+ CheckIntroPanel( '__design-theme-styles-menu', 'Theme Styles' );
+ CheckIllustrationPanel();
+ CheckInfoPanel( 2 );
+ CheckHelpPanelLinks();
+ } );
+
+ it( 'Checks if Heading and Subheading are present', () => {
+ CheckHeadingSubheading();
+ } );
+
+ it( 'Check if Default Theme variations exists in Menu', () => {
+ let previewCount = 0;
+ const className = '.theme-styles-menu__list__item';
+ const arr = cy.get( className );
+
+ arr.each( () => {
+ cy.get( className.concat( '__title-bar' ) )
+ .eq( previewCount )
+ .scrollIntoView()
+ .should( 'be.visible' );
+ cy.get( className.concat( '__live-preview-container' ) )
+ .eq( previewCount )
+ .scrollIntoView()
+ .should( 'be.visible' );
+ previewCount += 1;
+ } );
+ } );
+} );
diff --git a/tests/cypress/integration/4-design-steps/theme-styles-preview.cy.js b/tests/cypress/integration/4-design-steps/theme-styles-preview.cy.js
new file mode 100644
index 000000000..9902552ac
--- /dev/null
+++ b/tests/cypress/integration/4-design-steps/theme-styles-preview.cy.js
@@ -0,0 +1,61 @@
+//
+import {
+ CheckHelpPanelLinks,
+ CheckIllustrationPanel,
+ CheckInfoPanel,
+ CheckIntroPanel,
+} from '../wp-module-support/sidebar.cy';
+
+describe( 'Theme Styles Preview', function () {
+ before( () => {
+ cy.visit(
+ 'wp-admin/?page=nfd-onboarding#/wp-setup/step/design/theme-styles/preview'
+ );
+ cy.wait( 10000 );
+ } );
+
+ it( 'Check to make sure sidebar opens, content is in place and close sidebar', () => {
+ CheckIntroPanel( '__design-theme-styles-preview', 'Theme Styles' );
+ CheckIllustrationPanel();
+ CheckInfoPanel( 2 );
+ CheckHelpPanelLinks();
+ } );
+
+ it( 'Check if Theme is selected and content is in place', () => {
+ cy.get( ':nth-child(1) > .theme-styles-preview__title-bar' ).should(
+ 'be.visible'
+ );
+ } );
+
+ it( 'Check if Theme List is Visible in the Drawer', () => {
+ let previewCount = 0;
+ const className = '.theme-styles-preview--drawer__list__item';
+ const arr = cy.get( className );
+
+ arr.each( () => {
+ cy.get( className.concat( '__title-bar' ) )
+ .eq( previewCount )
+ .scrollIntoView()
+ .should( 'be.visible' );
+ cy.get( className.concat( '__live-preview-container' ) )
+ .eq( previewCount )
+ .scrollIntoView()
+ .should( 'be.visible' );
+ previewCount += 1;
+ } );
+ } );
+
+ it( 'Check for the selected theme in Drawer', () => {
+ cy.get( '.nfd-onboarding-drawer__panel-back' )
+ .scrollIntoView()
+ .should( 'be.visible' )
+ .should( 'have.text', 'Design' );
+ const className =
+ ':nth-child(2) > .theme-styles-preview--drawer__list__item__title-bar';
+ cy.get( className );
+ cy.get( className + ' > .live-preview-selected-check' )
+ .scrollIntoView()
+ .should( 'be.visible' );
+ } );
+
+});
diff --git a/tests/cypress/integration/4-design-steps/theme-styles.cy.js b/tests/cypress/integration/4-design-steps/theme-styles.cy.js
deleted file mode 100644
index 37c8a1500..000000000
--- a/tests/cypress/integration/4-design-steps/theme-styles.cy.js
+++ /dev/null
@@ -1,124 +0,0 @@
-//
-import { DrawerActivityForMenu } from '../../wp-module-support/drawer.cy';
-import { CheckHeadingSubheading } from '../../wp-module-support/header.cy';
-import {
- CheckHelpPanelLinks,
- CheckIllustrationPanel,
- CheckInfoPanel,
- CheckIntroPanel,
-} from '../../wp-module-support/sidebar.cy';
-
-describe( 'Theme Styles Menu and Preview', function () {
- before( () => {
- cy.visit(
- 'wp-admin/?page=nfd-onboarding&flow=ecommerce#/wp-setup/step/design/theme-styles/menu'
- );
- cy.wait( 5000 );
- } );
-
- it( 'Check Drawer Activity', () => {
- DrawerActivityForMenu(
- 'Onboarding Menu',
- ':nth-child(1)',
- 'Theme Styles'
- );
- } );
-
- it( 'Check to make sure sidebar opens, content is in place and close sidebar', () => {
- CheckIntroPanel( '__design-theme-styles-menu', 'Theme Styles' );
- CheckIllustrationPanel();
- CheckInfoPanel( 2 );
- CheckHelpPanelLinks();
- } );
-
- it( 'Checks if Heading and Subheading are present', () => {
- CheckHeadingSubheading();
- } );
-
- it( 'Check if Default Theme variations exists in Menu', () => {
- let previewCount = 0;
- const className = '.theme-styles-menu__list__item';
- const arr = cy.get( className );
-
- arr.each( () => {
- cy.get( className.concat( '__title-bar' ) )
- .eq( previewCount )
- .scrollIntoView()
- .should( 'be.visible' );
- cy.get( className.concat( '__live-preview-container' ) )
- .eq( previewCount )
- .scrollIntoView()
- .should( 'be.visible' );
- previewCount += 1;
- } );
- } );
-
- it( 'Check if Theme is selected and switches to Preview page', () => {
- cy.get(
- ':nth-child(2) > .theme-styles-menu__list__item__live-preview-container'
- )
- .scrollIntoView()
- .should( 'be.visible' )
- .click();
- cy.url().should(
- 'not.include',
- '#/wp-setup/step/design/theme-styles/menu'
- );
- cy.get( ':nth-child(1) > .theme-styles-preview__title-bar' ).should(
- 'be.visible'
- );
- cy.get( '.theme-styles-preview > div:nth-child(3)' ).should(
- 'be.visible'
- );
- } );
-
- it( 'Check if Theme List is Visible in the Drawer', () => {
- let previewCount = 0;
- const className = '.theme-styles-preview--drawer__list__item';
- const arr = cy.get( className );
-
- arr.each( () => {
- cy.get( className.concat( '__title-bar' ) )
- .eq( previewCount )
- .scrollIntoView()
- .should( 'be.visible' );
- cy.get( className.concat( '__live-preview-container' ) )
- .eq( previewCount )
- .scrollIntoView()
- .should( 'be.visible' );
- previewCount += 1;
- } );
- } );
-
- it( 'Check for the selected theme in Drawer', () => {
- cy.get( '.nfd-onboarding-drawer__panel-back' )
- .scrollIntoView()
- .should( 'be.visible' )
- .should( 'have.text', 'Design' );
- const className =
- ':nth-child(2) > .theme-styles-preview--drawer__list__item__title-bar';
- cy.get( className );
- cy.get( className + ' > .live-preview-selected-check' )
- .scrollIntoView()
- .should( 'be.visible' );
- } );
-
- it( 'Check/uncheck Colors and Font Checkbox', () => {
- cy.get( '[type=checkbox]' ).click().should( 'be.checked' );
- cy.get( '[type=checkbox]' ).click().should( 'not.be.checked' );
- } );
-
- it( 'Check for selected Theme in preview when navigated back to Menu page', () => {
- cy.get( '.navigation-buttons_back' ).click();
- cy.url().should(
- 'not.include',
- '#/wp-setup/step/design/theme-styles/preview'
- );
- const className =
- ':nth-child(2) > .theme-styles-menu__list__item__title-bar';
- cy.get( className );
- cy.get( className + ' > .live-preview-selected-check' ).should(
- 'be.visible'
- );
- } );
-} );
diff --git a/tests/cypress/integration/4-design-steps/typography-step.cy.js b/tests/cypress/integration/4-design-steps/typography-step.cy.js
index 3e7c0c104..c9df59e5c 100644
--- a/tests/cypress/integration/4-design-steps/typography-step.cy.js
+++ b/tests/cypress/integration/4-design-steps/typography-step.cy.js
@@ -1,27 +1,19 @@
//
-import { DrawerActivityForSubMenu } from '../../wp-module-support/drawer.cy';
+import { DrawerActivityForSubMenu } from '../wp-module-support/drawer.cy';
import {
CheckHelpPanelLinks,
CheckIllustrationPanel,
CheckInfoPanel,
CheckIntroPanel,
-} from '../../wp-module-support/sidebar.cy';
+} from '../wp-module-support/sidebar.cy';
describe( 'Typography Step Test', function () {
before( () => {
cy.visit(
- 'wp-admin/?page=nfd-onboarding&flow=ecommerce#/wp-setup/step/design/theme-styles/preview'
+ 'wp-admin/?page=nfd-onboarding#/wp-setup/step/design/typography'
);
} );
- it( 'Navigate to Typography Step', () => {
- cy.wait( 10000 );
- // Have to select the Preview Step Checkbox to activate Colors and Typgoraphy
- cy.get( '.navigation-buttons_next' ).click();
- cy.get( '.navigation-buttons_next' ).click();
- cy.wait( 10000 );
- } );
-
it( 'Check Drawer Activity', () => {
DrawerActivityForSubMenu(
'Design',
@@ -31,8 +23,8 @@ describe( 'Typography Step Test', function () {
);
} );
- it( 'Check to make sure sidebar opens, content is in place and close sidebar', () => {
- CheckIntroPanel( '__design-typography', 'Typography' );
+ it.skip( 'Check to make sure sidebar opens, content is in place and close sidebar', () => {
+ CheckIntroPanel( '__design-fonts', 'Fonts' );
CheckIllustrationPanel();
CheckInfoPanel();
CheckHelpPanelLinks();