import React from 'react';
import { composeStories } from '@storybook/react-vite';
import { render as testRender } from '../../../../vitest/render';
import * as stories from './TableHeaderCell.stories';
const composedStories = composeStories(stories);
describe('TableHeaderCell Story Snapshots', () => {
it('has tests for all stories', () => {
const storyNames = Object.keys(composedStories);
const testedStories = new Set(['Default']);
const untestedStories = storyNames.filter(name => !testedStories.has(name));
expect(untestedStories).toEqual([]);
});
it('renders Default story', () => {
const Story = composedStories.Default;
const { container } = testRender(
| Header cell | Header cell 2 | Header cell 3 | Header cell 4 |
|---|---|---|---|
| Row 1, body cell 1 | Row 1, body cell 2 | Row 1, body cell 3 | Row 1, body cell 4 |
| Row 2, body cell 1 | Row 2, body cell 2 | Row 2, body cell 3 | Row 2, body cell 4 |
| Row 3, body cell 1 | Row 3, body cell 2 | Row 3, body cell 3 | Row 3, body cell 4 |
| Row 4, body cell 1 | Row 4, body cell 2 | Row 4, body cell 3 | Row 4, body cell 4 |