import React from 'react'; import { composeStories } from '@storybook/react-vite'; import { render as testRender } from '../../../../vitest/render'; import * as stories from './RadioGroup.stories'; const composedStories = composeStories(stories); describe('RadioGroup Story Snapshots', () => { it('has tests for all stories', () => { const storyNames = Object.keys(composedStories); const testedStories = new Set([ 'Default', 'Horizontal', 'WithActionSlot', 'WithImageOptionLoadingError', 'WithImageOption', 'WithVerticalImageOptions', 'WithImageOptionsInGrid', ]); const untestedStories = storyNames.filter(name => !testedStories.has(name)); expect(untestedStories).toEqual([]); }); it('renders Default story', () => { const Story = composedStories.Default; const { container } = testRender(); expect(container).toMatchInlineSnapshot(`
`); }); it('renders Horizontal story', () => { const Story = composedStories.Horizontal; const { container } = testRender(); expect(container).toMatchInlineSnapshot(`
`); }); it('renders WithActionSlot story', () => { const Story = composedStories.WithActionSlot; const { container } = testRender(); expect(container).toMatchInlineSnapshot(`
`); }); it('renders WithImageOptionLoadingError story', () => { const Story = composedStories.WithImageOptionLoadingError; const { container } = testRender(); expect(container).toMatchInlineSnapshot(`
`); }); it('renders WithImageOption story', () => { const Story = composedStories.WithImageOption; const { container } = testRender(); expect(container).toMatchInlineSnapshot(`
`); }); it('renders WithVerticalImageOptions story', () => { const Story = composedStories.WithVerticalImageOptions; const { container } = testRender(); expect(container).toMatchInlineSnapshot(`
`); }); it('renders WithImageOptionsInGrid story', () => { const Story = composedStories.WithImageOptionsInGrid; const { container } = testRender(); expect(container).toMatchInlineSnapshot(`
`); }); });