diff --git a/packages/volto/cypress/tests/core/blocks/blocks-autofocus.js b/packages/volto/cypress/tests/core/blocks/blocks-autofocus.js index ef48d8f8bb..1ca61eb772 100644 --- a/packages/volto/cypress/tests/core/blocks/blocks-autofocus.js +++ b/packages/volto/cypress/tests/core/blocks/blocks-autofocus.js @@ -51,7 +51,7 @@ describe('New Block Auto Focus Tests', () => { it('Press Enter on a image block adds new autofocused default block', () => { cy.addNewBlock('image'); // Timing issues ahead :( - cy.get('.block-editor-image .no-image-wrapper img') + cy.get('.block-editor-image img') .should('be.visible') .and(($img) => { // "naturalWidth" and "naturalHeight" are set when the image loads diff --git a/packages/volto/cypress/tests/core/blocks/blocks-chooser.js b/packages/volto/cypress/tests/core/blocks/blocks-chooser.js index fff0bb67d8..70ba07345b 100644 --- a/packages/volto/cypress/tests/core/blocks/blocks-chooser.js +++ b/packages/volto/cypress/tests/core/blocks/blocks-chooser.js @@ -26,7 +26,8 @@ describe('Blocks Tests', () => { cy.getSlate().click(); cy.get('.ui.basic.icon.button.block-add-button').click(); cy.get('.ui.basic.icon.button.image').contains('Image').click(); - cy.get('.block.image .ui.input input[type="text"]').type( + cy.get('.toolbar-inner .buttons').first().next().next().click(); + cy.get('.ui.input.editor-link.input-anchorlink-theme input').type( `https://github.com/plone/volto/raw/main/logos/volto-colorful.png{enter}`, ); cy.get('#toolbar-save').click(); diff --git a/packages/volto/src/components/manage/Widgets/ImageWidget.jsx b/packages/volto/src/components/manage/Widgets/ImageWidget.jsx index 14267f8c97..7083ca1131 100644 --- a/packages/volto/src/components/manage/Widgets/ImageWidget.jsx +++ b/packages/volto/src/components/manage/Widgets/ImageWidget.jsx @@ -176,7 +176,6 @@ const UnconnectedImageInput = (props) => { onFocus && onFocus(); e.preventDefault(); openObjectBrowser({ - overlay: true, onSelectItem: onChange, }); }}