import React from 'react';
import { composeStories } from '@storybook/react-vite';
import { render as testRender } from '../../../../vitest/render';
import * as stories from './RangeInput.stories';
const composedStories = composeStories(stories);
describe('RangeInput Story Snapshots', () => {
it('has tests for all stories', () => {
const storyNames = Object.keys(composedStories);
const testedStories = new Set([
'Default',
'WithDefaultValue',
'Controlled',
'DashSeparator',
'PipeSeparator',
'ToSeparator',
'ErrorState',
'WarningState',
'LoadingState',
'DisabledState',
]);
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 WithDefaultValue story', () => {
const Story = composedStories.WithDefaultValue;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders Controlled story', () => {
const Story = composedStories.Controlled;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders DashSeparator story', () => {
const Story = composedStories.DashSeparator;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders PipeSeparator story', () => {
const Story = composedStories.PipeSeparator;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders ToSeparator story', () => {
const Story = composedStories.ToSeparator;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders ErrorState story', () => {
const Story = composedStories.ErrorState;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders WarningState story', () => {
const Story = composedStories.WarningState;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders LoadingState story', () => {
const Story = composedStories.LoadingState;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders DisabledState story', () => {
const Story = composedStories.DisabledState;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
});