Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioCastigliano committed Jul 18, 2024
1 parent 22c63a3 commit 2208e4d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ snapshots["sbb-flip-card-summary DOM"] =
<sbb-image
aspect-ratio="free"
border-radius="none"
image-src="https://cdn.img.sbb.ch/content/dam/internet/lyne/Billetkontrolle.jpg"
slot="image"
>
</sbb-image>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { expect } from '@open-wc/testing';
import { html } from 'lit/static-html.js';

import sampleImages from '../../core/images.js';
import { fixture, testA11yTreeSnapshot } from '../../core/testing/private.js';

import type { SbbFlipCardSummaryElement } from './flip-card-summary.js';
Expand All @@ -16,7 +17,12 @@ describe(`sbb-flip-card-summary`, () => {
element = await fixture(
html`<sbb-flip-card-summary image-alignment="below">
<sbb-title level="4">Summary</sbb-title>
<sbb-image slot="image" border-radius="none" aspect-ratio="free"></sbb-image>
<sbb-image
slot="image"
border-radius="none"
aspect-ratio="free"
image-src=${sampleImages[0]}
></sbb-image>
</sbb-flip-card-summary>`,
);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ snapshots["sbb-flip-card Shadow DOM"] =
</slot>
<button
aria-expanded="false"
aria-label="Click on this card to show more details"
aria-label="Click on this card for details"
>
</button>
<slot name="details">
Expand Down Expand Up @@ -112,7 +112,7 @@ snapshots["sbb-flip-card A11y tree Chrome"] =
},
{
"role": "button",
"name": "Click on this card to show more details"
"name": "Click on this card for details"
},
{
"role": "button",
Expand All @@ -137,7 +137,7 @@ snapshots["sbb-flip-card A11y tree Firefox"] =
},
{
"role": "button",
"name": "Click on this card to show more details"
"name": "Click on this card for details"
},
{
"role": "button",
Expand Down

0 comments on commit 2208e4d

Please sign in to comment.