Skip to content

Commit

Permalink
Fix media filter control test
Browse files Browse the repository at this point in the history
  • Loading branch information
olafleur-godaddy committed Jul 20, 2023
1 parent d2751d1 commit f96cd39
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Include our constants
*/
import * as helpers from '../../../../.dev/tests/cypress/helpers';
import { getWPDataObject } from '../../../../.dev/tests/cypress/helpers';
import { getWPDataObject, isWP63AtLeast } from '../../../../.dev/tests/cypress/helpers';

const filters = [
'Original',
Expand Down Expand Up @@ -105,10 +105,12 @@ describe( 'Test CoBlocks Media Filter Control component', function() {
.should( 'exist' )
.click();

helpers.selectBlock( 'Gallery' );
if ( ! isWP63AtLeast() ) {
helpers.selectBlock( 'Gallery' );

cy.get( '.block-editor-block-toolbar__slot .components-coblocks-media-filter' )
.click();
cy.get( '.block-editor-block-toolbar__slot .components-coblocks-media-filter' )
.click();
}

let childIteration = 1;

Expand Down

0 comments on commit f96cd39

Please sign in to comment.