Skip to content

Commit

Permalink
fix: wait for image to be loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioCastigliano committed Aug 8, 2024
1 parent 9f2aa95 commit 31dc9fe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/elements/teaser-hero/teaser-hero.visual.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ describe(`sbb-teaser-hero`, () => {
<sbb-chip slot="chip">Label</sbb-chip>
</sbb-teaser-hero>
`);

await waitForImageReady(
setup.snapshotElement
.querySelector('sbb-teaser-hero')!
.shadowRoot!.querySelector('sbb-image')!,
);
}),
);
}
Expand Down

0 comments on commit 31dc9fe

Please sign in to comment.