Skip to content

Commit

Permalink
Test the complete property
Browse files Browse the repository at this point in the history
  • Loading branch information
weotch committed Nov 17, 2023
1 parent 61cc74f commit b54f393
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions packages/react/cypress/component/ReactVisual.cy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ describe('natural size', () => {
cy.mount(<ReactVisual
image='https://placehold.co/200x200'
alt=''/>)
cy.get('img').its('[0].complete').should('equal', true)
cy.get('img').hasDimensions(200, 200)
})

Expand Down
1 change: 0 additions & 1 deletion packages/react/cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
Cypress.Commands.add('hasDimensions',
{ prevSubject: true },
(subject, width, height) => {
cy.wrap(subject).should('be.visible')
cy.wrap(subject).invoke('width').should('equal', width)
cy.wrap(subject).invoke('height').should('equal', height)
})
Expand Down

0 comments on commit b54f393

Please sign in to comment.