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