import React from 'react';
import { composeStories } from '@storybook/react-vite';
import { render as testRender } from '../../../vitest/render';
import * as stories from './StatusIndicator.stories';
const composedStories = composeStories(stories);
describe('StatusIndicator Story Snapshots', () => {
it('has tests for all stories', () => {
const storyNames = Object.keys(composedStories);
const testedStories = new Set([
'Critical',
'Warning',
'Positive',
'Informative',
'Notice',
'Neutral',
'Medium',
'Small',
'MediumEmphasis',
'LowEmphasis',
'SymbolOff',
'SymbolCustom',
'WithLabel',
'WithHeadingLabel',
'WithTooltip',
'ShapeOnly',
]);
const untestedStories = storyNames.filter(name => !testedStories.has(name));
expect(untestedStories).toEqual([]);
});
it('renders Critical story', () => {
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders Warning story', () => {
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders Positive story', () => {
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
Positive
`);
});
it('renders Informative story', () => {
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
Informative
`);
});
it('renders Notice story', () => {
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
Notice
`);
});
it('renders Neutral story', () => {
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
Neutral
`);
});
it('renders Medium story', () => {
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders Small story', () => {
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders MediumEmphasis story', () => {
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
Positive
`);
});
it('renders LowEmphasis story', () => {
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
Positive
`);
});
it('renders SymbolOff story', () => {
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
Neutral
`);
});
it('renders SymbolCustom story', () => {
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
Informative
`);
});
it('renders WithLabel story', () => {
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
Paid
`);
});
it('renders WithHeadingLabel story', () => {
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
Paid
`);
});
it('renders WithTooltip story', () => {
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders ShapeOnly story', () => {
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
});