Skip to content

Commit

Permalink
keeping window accidentally removed in rewrite
Browse files Browse the repository at this point in the history
it should close the welcome guide if it displays so the test can perform
  • Loading branch information
circlecube committed Dec 18, 2024
1 parent 3fd7076 commit 03e2829
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/cypress/integration/wonder-blocks.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ describe( "WonderBlocks", { testIsolation: true }, () => {

cy.wait( 1000 );

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 03e2829

Please sign in to comment.