Skip to content

Commit

Permalink
test(sbb-teaser-hero): fix shadow root access in visual regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
jeripeierSBB committed Jul 11, 2024
1 parent 4e680e9 commit 5fe81f5
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ describe(`sbb-teaser-hero`, () => {
</sbb-teaser-hero>
`);

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

Expand Down

0 comments on commit 5fe81f5

Please sign in to comment.