Skip to content

Commit

Permalink
Merge pull request #24 from newfold-labs/fix/test-close-snackbar-notices
Browse files Browse the repository at this point in the history
Another tweak for cypress test
  • Loading branch information
circlecube authored Apr 10, 2024
2 parents 0dfda9c + 627dc34 commit c464472
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/cypress/integration/staging-prod.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,11 @@ describe( 'Staging Page - Production Environment', function () {
}
).as( 'stagingSwitch' );

// close all snackbar notices
cy.get( '.nfd-notification button' ).each( ( $btn ) => {
cy.wrap( $btn ).click();
});

cy.get( '#newfold-production-toggle' ).should( 'be.checked' );
cy.get( '#newfold-staging-toggle' ).should( 'not.be.checked' );
cy.get( '#newfold-staging-toggle' ).click();
Expand Down

0 comments on commit c464472

Please sign in to comment.