Skip to content

Commit

Permalink
fix acceptance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pnicolli committed Jul 18, 2023
1 parent 948ee0a commit 984f4b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cypress/tests/core/blocks/blocks-listing-templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe('Folder Contents Tests', () => {
cy.url().should('eq', Cypress.config().baseUrl + '/my-folder/my-document');
cy.get('.listing-item img')
.should('have.attr', 'src')
.and('contain', '/my-folder/my-document/my-image/@@images/image/preview');
.and('contain', '/my-folder/my-document/my-image/@@images/image-');
cy.get('.listing-item img')
.should('be.visible')
.and(($img) => {
Expand Down
6 changes: 3 additions & 3 deletions cypress/tests/minimal/blocks-image.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
describe('Blocks Tests', () => {
beforeEach(() => {
cy.intercept('POST', '*').as('saveImage');
cy.intercept('GET', '/**/image.png/@@images/image').as('getImage');
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 @@ -117,7 +117,7 @@ describe('Blocks Tests', () => {
// then image src must be equal to image name
cy.get('.block img')
.should('have.attr', 'src')
.and('eq', '/my-page/image.png/@@images/image');
.and('contains', '/my-page/image.png/@@images/image-');

cy.get('.block img')
.should('be.visible')
Expand Down Expand Up @@ -146,7 +146,7 @@ describe('Blocks Tests', () => {

cy.get('.block img')
.should('have.attr', 'src')
.and('eq', '/image.png/@@images/image');
.and('contains', '/image.png/@@images/image-');

cy.get('.block img')
.should('be.visible')
Expand Down

0 comments on commit 984f4b0

Please sign in to comment.