import React from 'react';
import { composeStories } from '@storybook/react-vite';
import { render as testRender } from '../../../../vitest/render';
import * as stories from './TreeField.stories';
const composedStories = composeStories(stories);
describe('TreeField Story Snapshots', () => {
it('has tests for all stories', () => {
const storyNames = Object.keys(composedStories);
const testedStories = new Set([
'Default',
'Required',
'Justify',
'LabelHidden',
'Tooltip',
'WithSelection',
'WithExpandedValues',
'Hint',
'Error',
'Warning',
]);
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 Required story', () => {
const Story = composedStories.Required;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders Justify story', () => {
const Story = composedStories.Justify;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders LabelHidden story', () => {
const Story = composedStories.LabelHidden;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders Tooltip story', () => {
const Story = composedStories.Tooltip;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders WithSelection story', () => {
const Story = composedStories.WithSelection;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders WithExpandedValues story', () => {
const Story = composedStories.WithExpandedValues;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders Hint story', () => {
const Story = composedStories.Hint;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders Error story', () => {
const Story = composedStories.Error;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders Warning story', () => {
const Story = composedStories.Warning;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
});