Skip to content

Commit

Permalink
Merge pull request #64 from newfold-labs/fix-cypress-wonderblocks-test
Browse files Browse the repository at this point in the history
Fix Cypress test failing in wonder-blocks.cy.js
  • Loading branch information
bradp authored Apr 10, 2024
2 parents 0ab410e + 4d23964 commit 92fde7d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/cypress/integration/wonder-blocks.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ describe("Wonder Blocks", function () {

it("Wonder Blocks button opens modal", () => {
cy.wait(1000);
cy.get("body").click({ force: true }); // clear welcome guide

cy.window().then((win) => {
win.wp.data.select( 'core/edit-post' ).isFeatureActive( 'welcomeGuide' ) && win.wp.data.dispatch( 'core/edit-post').toggleFeature( 'welcomeGuide' );
});

cy.wait(100);
cy.get("#nfd-wba-toolbar-button button").click();
cy.wait(100);
Expand Down

0 comments on commit 92fde7d

Please sign in to comment.