Skip to content

Commit

Permalink
chore(release/components): 1.14.1 [skip actions]
Browse files Browse the repository at this point in the history
* 🐛 prevent rewrite of inset property when border variant was selected in sd-teaser ([#422](#422)) ([ada5be7](ada5be7)), closes [#362](#362)
  • Loading branch information
semantic-release-bot authored and yoezlem committed Oct 9, 2023
1 parent b7d2d01 commit 1571b1c
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,12 @@ export const Mouseless = {
play: async ({ canvasElement }: { canvasElement: HTMLUnknownElement }) => {
const el = canvasElement.querySelector('.mouseless sd-radio-group');
await waitUntil(() => el?.shadowRoot?.querySelector('label'));
// We have to catch the event as otherwise Storybook will break
await userEvent.type(el!.shadowRoot!.querySelector('label')!, '{return}', { pointerEventsCheck: 0 });

if (el?.shadowRoot) {
const label = el.shadowRoot.querySelector('label');
if (label) {
await userEvent.type(label, '{space}', { pointerEventsCheck: 0 });
}
}
}
};

0 comments on commit 1571b1c

Please sign in to comment.