From 131e5adbe9cea6d24706c0f637b18c1dcece5fbc Mon Sep 17 00:00:00 2001 From: aledesma-godaddy Date: Thu, 25 Jul 2024 15:19:57 -0700 Subject: [PATCH] fix service block tests --- src/blocks/services/test/services.cypress.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/blocks/services/test/services.cypress.js b/src/blocks/services/test/services.cypress.js index 7c33bfbfd7c..9ed90841ffd 100644 --- a/src/blocks/services/test/services.cypress.js +++ b/src/blocks/services/test/services.cypress.js @@ -73,7 +73,8 @@ describe( 'Test CoBlocks Services Block', function() { it( 'Test service block has the proper arrow orientation.', function() { helpers.addBlockToPost( 'coblocks/services', true ); - cy.get( '.edit-post-visual-editor [data-type="coblocks/service"]:first-child' ).click(); + // helpers.selectBlock('service'); + cy.get( '.edit-post-visual-editor [data-type="coblocks/service"]:first-child' ).focus(); cy.get( 'div.block-editor-block-mover' ).should( 'have.class', 'is-horizontal' ); // Select parent block @@ -81,7 +82,7 @@ describe( 'Test CoBlocks Services Block', function() { helpers.setInputValue( 'Services settings', 'Columns', 1, false ); - cy.get( '.edit-post-visual-editor [data-type="coblocks/service"]:first-child' ).click(); + cy.get( '.edit-post-visual-editor [data-type="coblocks/service"]:first-child' ).focus(); cy.get( 'div.block-editor-block-mover' ).should( 'not.have.class', 'is-horizontal' ); helpers.savePage();