Skip to content

Commit

Permalink
Add a test that a video tag wasn’t rendered when no video src provided
Browse files Browse the repository at this point in the history
  • Loading branch information
weotch committed Nov 20, 2024
1 parent f368cb5 commit 1cb6a0e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/contentful/cypress/component/ContentfulVisual.cy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ describe('contentful visual entry props', () => {
portraitVideo: null,
}} />)

// There should be no vidoes rendered
cy.get("video").should("not.exist");

// Portrait asset
cy.get('img').hasDimensions(VW, VW)
cy.get('img').its('[0].currentSrc')
Expand Down

0 comments on commit 1cb6a0e

Please sign in to comment.