diff --git a/tests/cypress/integration/plugin-search.cy.js b/tests/cypress/integration/plugin-search.cy.js index 7dd2544..ebf39ed 100644 --- a/tests/cypress/integration/plugin-search.cy.js +++ b/tests/cypress/integration/plugin-search.cy.js @@ -50,7 +50,7 @@ describe( 'Plugin Search', { testIsolation: true }, () => { } ); it( 'should display matching plugin search results', () => { - cy.intercept( + cy.intercept( { method: 'POST', url: /newfold-notifications(\/|%2F)v1(\/|%2F)notifications(\/|%2F)events/, @@ -77,7 +77,7 @@ describe( 'Plugin Search', { testIsolation: true }, () => { } ); it( 'should not display non-matching plugin search results', () => { - cy.intercept( + cy.intercept( { method: 'POST', url: /newfold-notifications(\/|%2F)v1(\/|%2F)notifications(\/|%2F)events/, diff --git a/tests/cypress/integration/theme-search.cy.js b/tests/cypress/integration/theme-search.cy.js index 69a542e..29cb75e 100644 --- a/tests/cypress/integration/theme-search.cy.js +++ b/tests/cypress/integration/theme-search.cy.js @@ -43,7 +43,6 @@ const notifications = { }; describe( 'Theme Search', { testIsolation: true }, () => { - beforeEach( () => { wpLogin(); wpCli( 'transient delete newfold_notifications' ); diff --git a/tests/cypress/wp-module-support/utils.cy.js b/tests/cypress/wp-module-support/utils.cy.js index e9180fd..1c43da0 100644 --- a/tests/cypress/wp-module-support/utils.cy.js +++ b/tests/cypress/wp-module-support/utils.cy.js @@ -22,4 +22,4 @@ export const wpCli = ( cmd ) => { cy.log( `${ key }: ${ value }` ); } } ); -}; \ No newline at end of file +};