Skip to content

Commit

Permalink
fix: rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideMininni-Fincons committed Dec 12, 2023
1 parent 3f763a5 commit bd9a8cd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/components/teaser/teaser.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down
18 changes: 9 additions & 9 deletions src/components/teaser/teaser.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -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`
<sbb-teaser
href="https://github.com/lyne-design-system/lyne-components"
aria-label="Sbb teaser"
Expand All @@ -64,7 +64,7 @@ describe('sbb-teaser', () => {
});

it('renders bottom with projected content - ShadowDOM', async () => {
const root: SbbTeaser = await fixture(html`
const root: SbbTeaserElement = await fixture(html`
<sbb-teaser
href="https://github.com/lyne-design-system/lyne-components"
aria-label="Sbb teaser"
Expand All @@ -80,12 +80,12 @@ describe('sbb-teaser', () => {
});

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();
});
});

0 comments on commit bd9a8cd

Please sign in to comment.