import React from 'react';
import { composeStories } from '@storybook/react-vite';
import { render as testRender } from '../../../vitest/render';
import * as stories from './RatingsOverview.stories';
const composedStories = composeStories(stories);
describe('RatingsOverview Story Snapshots', () => {
it('has tests for all stories', () => {
const storyNames = Object.keys(composedStories);
const testedStories = new Set([
'Positive',
'Negative',
'Neutral',
'PositiveWithTooltip',
'NegativeWithTooltip',
'NeutralWithTooltip',
]);
const untestedStories = storyNames.filter(name => !testedStories.has(name));
expect(untestedStories).toEqual([]);
});
it('renders Positive story', () => {
const Story = composedStories.Positive;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders Negative story', () => {
const Story = composedStories.Negative;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders Neutral story', () => {
const Story = composedStories.Neutral;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders PositiveWithTooltip story', () => {
const Story = composedStories.PositiveWithTooltip;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders NegativeWithTooltip story', () => {
const Story = composedStories.NegativeWithTooltip;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders NeutralWithTooltip story', () => {
const Story = composedStories.NeutralWithTooltip;
const { container } = testRender();
expect(container).toMatchInlineSnapshot(`
`);
});
});