Skip to content

Commit

Permalink
fix service block tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aledesma-godaddy committed Jul 25, 2024
1 parent f7b2406 commit 131e5ad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/blocks/services/test/services.cypress.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,16 @@ 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
helpers.selectBlock( 'services' );

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();
Expand Down

0 comments on commit 131e5ad

Please sign in to comment.