diff --git a/components/src/Switcher/Switcher.stories.svelte b/components/src/Switcher/Switcher.stories.svelte index 1fbb77e9..64c85962 100644 --- a/components/src/Switcher/Switcher.stories.svelte +++ b/components/src/Switcher/Switcher.stories.svelte @@ -13,13 +13,13 @@ - + - + - + + { + const canvas = within(canvasElement); + console.log(canvas); + await step('Options are displayed in a row', async () => { + const list = canvas.getByRole('list'); + expect(list.classList).toContain('layout-row'); + }); + }} +> + + + + + + { + const canvas = within(canvasElement); + console.log(canvas); + await step('Options are displayed in a row', async () => { + const list = canvas.getByRole('list'); + expect(list.classList).toContain('layout-column'); + }); + }} +> + + + + {label} -