diff --git a/tests/cypress/integration/notifications.cy.js b/tests/cypress/integration/notifications.cy.js index 17813f6..08b53c7 100644 --- a/tests/cypress/integration/notifications.cy.js +++ b/tests/cypress/integration/notifications.cy.js @@ -150,6 +150,7 @@ describe( 'Notifications', () => { } ); it( 'Should redirect to AI onboarding when TRY NOW button is clicked', () => { + cy.visit( '/wp-admin/index.php' ); cy.intercept( { method: 'GET', @@ -157,7 +158,13 @@ describe( '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(