diff --git a/src/components/teaser/teaser.e2e.ts b/src/components/teaser/teaser.e2e.ts index 2d5a37900b4..a2be8e94a16 100644 --- a/src/components/teaser/teaser.e2e.ts +++ b/src/components/teaser/teaser.e2e.ts @@ -14,7 +14,7 @@ describe('sbb-teaser', () => { }); it('should render', async () => { - assert.instanceOf(element, SbbTeaser); + assert.instanceOf(element, SbbTeaserElement); }); it('dispatches event on click', async () => { diff --git a/src/components/teaser/teaser.spec.ts b/src/components/teaser/teaser.spec.ts index 9e752cbc27d..03a4788cf0c 100644 --- a/src/components/teaser/teaser.spec.ts +++ b/src/components/teaser/teaser.spec.ts @@ -6,7 +6,7 @@ import { html } from 'lit/static-html.js'; import { sbbSpread } from '../core/dom'; import placeholderImage from './stories/placeholder.png'; -import type { SbbTeaser } from './teaser'; +import type { SbbTeaserElement } from './teaser'; import './teaser'; import '../title'; @@ -28,27 +28,27 @@ describe('sbb-teaser', () => { }; it('renders end centered - DOM', async () => { - const root: SbbTeaser = await fixture(createTeaser(argsEndCentered)); + const root: SbbTeaserElement = await fixture(createTeaser(argsEndCentered)); expect(root).dom.to.equalSnapshot(); }); it('renders end centered - ShadowDOM', async () => { - const root: SbbTeaser = await fixture(createTeaser(argsEndCentered)); + const root: SbbTeaserElement = await fixture(createTeaser(argsEndCentered)); expect(root).shadowDom.to.equalSnapshot(); }); it('renders end top with title level set - DOM', async () => { - const root: SbbTeaser = await fixture(createTeaser(argsEndTop)); + const root: SbbTeaserElement = await fixture(createTeaser(argsEndTop)); expect(root).dom.to.equalSnapshot(); }); it('renders end top with title level set - ShadowDOM', async () => { - const root: SbbTeaser = await fixture(createTeaser(argsEndTop)); + const root: SbbTeaserElement = await fixture(createTeaser(argsEndTop)); expect(root).shadowDom.to.equalSnapshot(); }); it('renders bottom with projected content - DOM', async () => { - const root: SbbTeaser = await fixture(html` + const root: SbbTeaserElement = await fixture(html` { }); it('renders bottom with projected content - ShadowDOM', async () => { - const root: SbbTeaser = await fixture(html` + const root: SbbTeaserElement = await fixture(html` { }); it('renders static - DOM', async () => { - const root: SbbTeaser = await fixture(createTeaser({ alignment: 'end-centered' })); + const root: SbbTeaserElement = await fixture(createTeaser({ alignment: 'end-centered' })); expect(root).dom.to.equalSnapshot(); }); it('renders static - ShadowDOM', async () => { - const root: SbbTeaser = await fixture(createTeaser({ alignment: 'end-centered' })); + const root: SbbTeaserElement = await fixture(createTeaser({ alignment: 'end-centered' })); expect(root).shadowDom.to.equalSnapshot(); }); });