From 1cb6a0ed9c7462054ded549cd97135d05db5e33e Mon Sep 17 00:00:00 2001 From: Robert Reinhard Date: Wed, 20 Nov 2024 09:53:59 -0800 Subject: [PATCH] =?UTF-8?q?Add=20a=20test=20that=20a=20video=20tag=20wasn?= =?UTF-8?q?=E2=80=99t=20rendered=20when=20no=20video=20src=20provided?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/contentful/cypress/component/ContentfulVisual.cy.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/contentful/cypress/component/ContentfulVisual.cy.tsx b/packages/contentful/cypress/component/ContentfulVisual.cy.tsx index 8b3489c..cc5ab49 100644 --- a/packages/contentful/cypress/component/ContentfulVisual.cy.tsx +++ b/packages/contentful/cypress/component/ContentfulVisual.cy.tsx @@ -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')