From bf3361ebfa0fdaabb9b9ec849c5ffce6f63a52aa Mon Sep 17 00:00:00 2001 From: ariellalgilmore Date: Wed, 25 Oct 2023 12:16:22 -0700 Subject: [PATCH] fix(leadspace-block): video --- .../__tests__/leadspace-block.test.ts | 32 +------------------ 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/packages/web-components/src/components/leadspace-block/__tests__/leadspace-block.test.ts b/packages/web-components/src/components/leadspace-block/__tests__/leadspace-block.test.ts index 0a8e2b8a9b2..11982437aa8 100644 --- a/packages/web-components/src/components/leadspace-block/__tests__/leadspace-block.test.ts +++ b/packages/web-components/src/components/leadspace-block/__tests__/leadspace-block.test.ts @@ -9,18 +9,13 @@ import { render } from 'lit/html.js'; import '../leadspace-block'; -import { Default, WithVideo } from '../__stories__/leadspace-block.stories'; +import { Default } from '../__stories__/leadspace-block.stories'; const DefaultTemplate = (props?) => Default({ LeadSpaceBlock: props, }); -const WithVideoTemplate = (props?) => - WithVideo({ - LeadSpaceBlock: props, - }); - describe('c4d-leadspace-block', function () { describe('Misc attributes - Default', function () { it('should render with minimum attributes', async function () { @@ -47,31 +42,6 @@ describe('c4d-leadspace-block', function () { }); }); - describe('Misc attributes - WithVideo', function () { - it('should render with minimum attributes', async function () { - render(WithVideoTemplate(), document.body); - await Promise.resolve(); // Update cycle for `` - expect( - document.body.querySelector('c4d-leadspace-block') - ).toMatchSnapshot({ mode: 'shadow' }); - }); - - it('should render with various attributes', async function () { - render( - WithVideoTemplate({ - title: 'leadspace-block title', - heading: 'leadspace-block heading', - copy: 'leadspace-block copy', - }), - document.body - ); - await Promise.resolve(); // Update cycle for `` - expect( - document.body.querySelector('c4d-leadspace-block') - ).toMatchSnapshot({ mode: 'shadow' }); - }); - }); - afterEach(async function () { await render(undefined!, document.body); });