Skip to content

Commit

Permalink
clear notification transient before
Browse files Browse the repository at this point in the history
  • Loading branch information
circlecube committed Feb 1, 2024
1 parent aaa3356 commit e8ff0fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/cypress/integration/notifications.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,14 @@ describe( 'Notifications', () => {
const appClass = '.' + Cypress.env( 'appId' );

before( () => {
cy.exec( 'npx wp-env run cli wp transient delete newfold_notifications' );
cy.intercept(
{
method: 'GET',
url: /newfold-notifications(\/|%2F)v1(\/|%2F)notifications/,
},
notifications
).as('notifications');
).as( 'notifications' );

cy.visit(
'/wp-admin/admin.php?page=' + Cypress.env( 'pluginId' ) + '#/home',
Expand Down

0 comments on commit e8ff0fb

Please sign in to comment.