Skip to content

Commit

Permalink
visit fresh plugin page for test
Browse files Browse the repository at this point in the history
  • Loading branch information
circlecube committed Nov 6, 2024
1 parent 3bed08c commit 8c10f84
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/cypress/integration/notifications.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,21 @@ describe( 'Notifications', () => {
} );

it( 'Should redirect to AI onboarding when TRY NOW button is clicked', () => {
cy.visit( '/wp-admin/index.php' );
cy.intercept(
{
method: 'GET',
url: /newfold-notifications(\/|%2F)v1(\/|%2F)notifications/,
},
notifications
).as( 'notifications' );
cy.reload();

cy.visit(
'/wp-admin/admin.php?page=' +
Cypress.env( 'pluginId' ) +
'#/home',
{ timeout: 30000 }
);
cy.wait( '@notifications' );
cy.wait( 2000 );
cy.get(
Expand Down

0 comments on commit 8c10f84

Please sign in to comment.