Skip to content

Commit

Permalink
make test compatible for WP v6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
avneet-raj committed Feb 28, 2024
1 parent 4b77d92 commit 782612b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/brand-plugin-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
needs: setup
uses: newfold-labs/workflows/.github/workflows/module-plugin-test.yml@main
with:
plugin-branch: 'release/3.9.0'
module-repo: ${{ github.repository }}
module-branch: ${{ needs.setup.outputs.branch }}
plugin-repo: "bluehost/bluehost-wordpress-plugin"
Expand All @@ -39,6 +40,7 @@ jobs:
needs: setup
uses: newfold-labs/workflows/.github/workflows/module-plugin-test.yml@main
with:
plugin-branch: 'release/2.7.0'
module-repo: ${{ github.repository }}
module-branch: ${{ needs.setup.outputs.branch }}
plugin-repo: "newfold-labs/wp-plugin-hostgator"
Expand Down
6 changes: 3 additions & 3 deletions tests/cypress/integration/wp-module-support/socialMedia.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const SocialMediaTextValidations = ( URL, ToolTipText, ModalHeaderText )
const NextButton = '.navigation-buttons_next';
const socialTest = '#facebook';
if ( cy.get(socialTest).should( 'exist' ) ) {
cy.get(socialTest).clear();
cy.get(socialTest).clear({force: true});
cy.wait(200);
cy.get(socialTest).type( URL );
cy.wait(200);
Expand All @@ -28,15 +28,15 @@ export const SocialMediaTextValidations = ( URL, ToolTipText, ModalHeaderText )
cy.get( '.components-modal__content' ).should('be.visible');
cy.get( '.components-modal__header-heading' ).should('have.text', ModalHeaderText);
};
cy.get(':nth-child(2) > .components-button-group > .is-secondary').click();
cy.get('.components-button-group.nfd-onboarding-etw__buttons > .components-button.is-secondary').click();
cy.wait(200);
cy.get(NextButton).click();
cy.wait(200);
cy.get('.components-modal__header button', {timeout: 10000}).click()
cy.wait(200);
cy.get(NextButton).click();
cy.wait(200);
cy.get(':nth-child(2) > .components-button-group > .is-primary').click();
cy.get('.components-button-group.nfd-onboarding-etw__buttons > .components-button.is-primary').click();
cy.wait(200);
cy.url().should('not.contain', 'wp-setup/step/basic-info');
cy.wait(200);
Expand Down

0 comments on commit 782612b

Please sign in to comment.