import React from 'react';
import { composeStories } from '@storybook/react-vite';
import { render as testRender } from '../../../../vitest/render';
import * as stories from './MultiSelectField.stories';
const composedStories = composeStories(stories);
describe('MultiSelectField Story Snapshots', () => {
it('has tests for all stories', () => {
const storyNames = Object.keys(composedStories);
const testedStories = new Set([
'Default',
'Content',
'Uncontrolled',
'Controlled',
'DisabledKeys',
'DisabledContent',
'DisabledDropdown',
'WarningContent',
'WarningDropdown',
'ErrorContent',
'ErrorDropdown',
'EmptyContent',
'EmptyDropdown',
'Placeholder',
'Loading',
'Tooltip',
'LongOption',
]);
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 Content story', () => {
const Story = composedStories.Content;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders Uncontrolled story', () => {
const Story = composedStories.Uncontrolled;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders Controlled story', () => {
const Story = composedStories.Controlled;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders DisabledKeys story', () => {
const Story = composedStories.DisabledKeys;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders DisabledContent story', () => {
const Story = composedStories.DisabledContent;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders DisabledDropdown story', () => {
const Story = composedStories.DisabledDropdown;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders WarningContent story', () => {
const Story = composedStories.WarningContent;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders WarningDropdown story', () => {
const Story = composedStories.WarningDropdown;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders ErrorContent story', () => {
const Story = composedStories.ErrorContent;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders ErrorDropdown story', () => {
const Story = composedStories.ErrorDropdown;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders EmptyContent story', () => {
const Story = composedStories.EmptyContent;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders EmptyDropdown story', () => {
const Story = composedStories.EmptyDropdown;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders Placeholder story', () => {
const Story = composedStories.Placeholder;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders Loading story', () => {
const Story = composedStories.Loading;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders Tooltip story', () => {
const Story = composedStories.Tooltip;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders LongOption story', () => {
const Story = composedStories.LongOption;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
});