Skip to content

Commit 1cb6a0e

Browse files
committed
Add a test that a video tag wasn’t rendered when no video src provided
1 parent f368cb5 commit 1cb6a0e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: packages/contentful/cypress/component/ContentfulVisual.cy.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ describe('contentful visual entry props', () => {
6363
portraitVideo: null,
6464
}} />)
6565

66+
// There should be no vidoes rendered
67+
cy.get("video").should("not.exist");
68+
6669
// Portrait asset
6770
cy.get('img').hasDimensions(VW, VW)
6871
cy.get('img').its('[0].currentSrc')

0 commit comments

Comments
 (0)