diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index f60491280..81fa851ef 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -47,11 +47,11 @@ jobs: - {name: 'PHP Default', version: null} core: - {name: 'WP stable', version: 'latest'} - - {name: 'WP minimum', version: 'WordPress/WordPress#6.5'} + - {name: 'WP minimum', version: 'WordPress/WordPress#6.6'} - {name: 'WP trunk', version: 'WordPress/WordPress#master'} include: - php: {name: 'PHP 7.4', version: '7.4'} - core: {name: 'WP minimum', version: 'WordPress/WordPress#6.5'} + core: {name: 'WP minimum', version: 'WordPress/WordPress#6.6'} - php: {name: 'PHP 8.1', version: '8.1'} core: {name: 'WP stable', version: 'latest'} steps: @@ -132,7 +132,7 @@ jobs: uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1 if: failure() with: - name: cypress-artifact + name: cypress-artifact-${{matrix.php.name}}-${{matrix.core.name}} retention-days: 2 path: | ${{ github.workspace }}/tests/cypress/screenshots/ diff --git a/distributor.php b/distributor.php index 3ed40e5f4..541c07947 100644 --- a/distributor.php +++ b/distributor.php @@ -5,7 +5,7 @@ * Update URI: https://distributorplugin.com * Description: Makes it easy to distribute and reuse content across your websites, whether inside of a multisite or across the web. * Version: 2.1.0 - * Requires at least: 6.5 + * Requires at least: 6.6 * Requires PHP: 7.4 * Author: 10up Inc. * Author URI: https://distributorplugin.com diff --git a/readme.txt b/readme.txt index fa71efe26..8253820df 100644 --- a/readme.txt +++ b/readme.txt @@ -33,7 +33,7 @@ There are two connection types: `internal` and `external`. == Upgrade Notice == = 2.0.5 = -**Distributor now requires WordPress 6.4 or later.** +**Distributor now requires WordPress 6.6 or later.** = 2.0.0 = **Distributor now requires PHP 7.4 or later and WordPress 5.7 or later.** diff --git a/tests/cypress/e2e/images.test.js b/tests/cypress/e2e/images.test.js index 8668643aa..72c9a2f83 100644 --- a/tests/cypress/e2e/images.test.js +++ b/tests/cypress/e2e/images.test.js @@ -33,8 +33,13 @@ describe( '[Block Editor] Image distribution tests', () => { .find( `#${ id } button.components-button` ) .contains( 'Media Library' ) .click(); - cy.get( '.attachments-browser .attachment' ).eq( 1 ).click(); - cy.get( '.media-button-select' ).click(); + cy.get( '[id^=__wp-uploader-id-]:visible' ) + .find( '.attachments-browser .attachment' ) + .eq( 1 ) + .click(); + cy.get( '[id^=__wp-uploader-id-]:visible' ) + .find( '.media-button-select' ) + .click(); cy.getBlockEditor().find( `#${ id } img` ).should( 'be.visible' ); } ); };