Skip to content

Commit

Permalink
update image spec to have greater offset
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiankaegy committed Aug 23, 2023
1 parent d0a05ce commit 0d3de1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/Image.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ context('Image', () => {
cy.get('#attachment-details-alt-text').type('Test Alt Text');
cy.get('.media-button-select').contains('Select').click();

cy.get('.wp-block-example-image-example img').scrollIntoView().should('be.visible');
cy.get('.wp-block-example-image-example img').scrollIntoView({offset: -50}).should('be.visible');

cy.get('.wp-block-example-image-example img')
.should('have.attr', 'alt');
Expand All @@ -34,7 +34,7 @@ context('Image', () => {

cy.wait(500);

cy.get('.wp-block-example-image-example img').scrollIntoView().should('be.visible');
cy.get('.wp-block-example-image-example img').scrollIntoView({offset: -50}).should('be.visible');

})

Expand Down

0 comments on commit 0d3de1d

Please sign in to comment.