diff --git a/package-lock.json b/package-lock.json index df1a081d7f..8b196b45c0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11264,10 +11264,11 @@ } }, "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dev": true, + "license": "MIT", "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -15142,10 +15143,11 @@ } }, "node_modules/http-proxy-middleware": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz", - "integrity": "sha512-ya/UeJ6HVBYxrgYotAZo1KvPWlgB48kUJLDePFeneHsVujFaW5WNj2NgWCAE//B1Dl02BIfYlpNgBy8Kf8Rjmw==", + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.7.tgz", + "integrity": "sha512-fgVY8AV7qU7z/MmXJ/rxwbrtQH4jBQ9m7kp3llF0liB7glmFeVZFBepQb32T3y8n8k2+AEYuMPCpinYW+/CuRA==", "dev": true, + "license": "MIT", "dependencies": { "@types/http-proxy": "^1.17.8", "http-proxy": "^1.18.1", @@ -26852,10 +26854,11 @@ } }, "node_modules/webpack-dev-server/node_modules/ws": { - "version": "8.16.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.16.0.tgz", - "integrity": "sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ==", + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz", + "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==", "dev": true, + "license": "MIT", "engines": { "node": ">=10.0.0" }, @@ -27194,10 +27197,11 @@ } }, "node_modules/ws": { - "version": "7.5.9", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", - "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "version": "7.5.10", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", + "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8.3.0" }, diff --git a/tests/search/e2e/cypress.config.js b/tests/search/e2e/cypress.config.js index ec807cb671..cf38454493 100644 --- a/tests/search/e2e/cypress.config.js +++ b/tests/search/e2e/cypress.config.js @@ -17,7 +17,7 @@ module.exports = defineConfig({ "numTestsKeptInMemory": 0, reporter: 'cypress-multi-reporters', reporterOptions: { - configFile: 'tests/search/e2e/cypress-reporter-config.json' - }, - experimentalSessionAndOrigin: true, + configFile: 'tests/search/e2e/cypress-reporter-config.json' + }, + experimentalSessionAndOrigin: true, }) diff --git a/tests/search/e2e/support/commands.js b/tests/search/e2e/support/commands.js index ae7bbaa1e2..0c86edf639 100644 --- a/tests/search/e2e/support/commands.js +++ b/tests/search/e2e/support/commands.js @@ -54,7 +54,7 @@ Cypress.Commands.add('openWidgetsPage', () => { cy.get('body').then(($body) => { const $button = $body.find('.edit-widgets-welcome-guide .components-modal__header button'); if ($button.is(':visible')) { - $button.click(); + $button.trigger('click'); } }); }); @@ -136,11 +136,11 @@ Cypress.Commands.add('publishPost', (postData, viewPost) => { cy.get('.block-editor-default-block-appender__content').type(newPostData.content); if (newPostData.status && newPostData.status === 'draft') { - cy.get('.editor-post-save-draft').click(); + cy.get('.editor-post-save-draft').click({ force: true }); cy.get('.editor-post-saved-state').should('have.text', 'Saved'); } else { cy.get('.editor-post-publish-panel__toggle').should('be.enabled'); - cy.get('.editor-post-publish-panel__toggle').click(); + cy.get('.editor-post-publish-panel__toggle').click({ force: true }); cy.get('.editor-post-publish-button').click(); diff --git a/tests/search/e2e/support/commands/block-editor.js b/tests/search/e2e/support/commands/block-editor.js index daee9ef017..e2afda4b88 100644 --- a/tests/search/e2e/support/commands/block-editor.js +++ b/tests/search/e2e/support/commands/block-editor.js @@ -6,7 +6,7 @@ Cypress.Commands.add('openBlockSettingsSidebar', () => { } else { cy.get('.editor-header__settings button[aria-label="Settings"]').then(($btn) => { if (!$btn.hasClass('is-pressed')) { - $btn.click(); + $btn.trigger('click'); } cy.get('.editor-sidebar__panel-tabs').contains('Block').click(); });