From 7f46f90d4d09844c2fb0fc856558227038a0bd8a Mon Sep 17 00:00:00 2001 From: Olivier Lafleur Date: Tue, 17 May 2022 12:46:34 -0400 Subject: [PATCH] Fix Hero block test --- src/blocks/hero/test/hero.cypress.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/blocks/hero/test/hero.cypress.js b/src/blocks/hero/test/hero.cypress.js index 7ad621a119d..e96c7a35fef 100644 --- a/src/blocks/hero/test/hero.cypress.js +++ b/src/blocks/hero/test/hero.cypress.js @@ -106,9 +106,8 @@ describe( 'Test CoBlocks Hero Block', function() { cy.get( '.attachment.selected.save-ready' ); cy.get( '.media-toolbar-primary > .button' ).click(); - //'.media-replace-flow button' was deprecated in 5.8. - // Media replace button should reside as the 5th button within the toolbar. - cy.get( '.block-editor-block-toolbar button:nth(4)' ).click(); + // Media replace button should reside as the 6th button within the toolbar. + cy.get( '.block-editor-block-toolbar button:nth(5)' ).click(); cy.get( '.components-popover__content' ).should( 'be.visible' );