Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dobri1408 committed Apr 17, 2024
1 parent aaa582c commit 5ee8f74
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion packages/volto/cypress/tests/core/blocks/blocks-chooser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ const UnconnectedImageInput = (props) => {
onFocus && onFocus();
e.preventDefault();
openObjectBrowser({
overlay: true,
onSelectItem: onChange,
});
}}
Expand Down

0 comments on commit 5ee8f74

Please sign in to comment.