Skip to content

Commit

Permalink
Update blocks-image.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dobri1408 authored Apr 16, 2024
1 parent 8ed012e commit 4b72c31
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/volto/cypress/tests/core/blocks/blocks-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ describe('Blocks Tests', () => {
cy.intercept('GET', `/**/*?expand*`).as('content');
cy.intercept('GET', '/**/Document').as('schema');
cy.intercept('POST', '*').as('saveImage');
cy.intercept('GET', '/**/image.png/@@images/image-*').as('getImage');
// given a logged in editor and a page in edit mode
cy.visit('/');
cy.autologin();
Expand Down Expand Up @@ -118,7 +117,6 @@ describe('Blocks Tests', () => {
cy.get('#toolbar-save').click();

cy.wait('@saveImage');
cy.wait('@getImage');

// then image src must be equal to image name
cy.get('.block img')
Expand Down Expand Up @@ -148,7 +146,7 @@ describe('Blocks Tests', () => {
});

cy.wait('@saveImage');
cy.wait('@getImage');


cy.get('.block img')
.should('have.attr', 'src')
Expand All @@ -175,7 +173,6 @@ describe('Blocks Tests', () => {
encoding: 'utf8',
});
cy.wait('@saveImage');
cy.wait('@getImage');

// then in sidebar alt attr should be empty
cy.get('#sidebar-properties .field-wrapper-alt input#field-alt')
Expand Down

0 comments on commit 4b72c31

Please sign in to comment.