import React from 'react';
import { composeStories } from '@storybook/react-vite';
import { render as testRender } from '../../../../vitest/render';
import * as stories from './LandingPageSection.stories';
const composedStories = composeStories(stories);
describe('LandingPageSection Story Snapshots', () => {
it('has tests for all stories', () => {
const storyNames = Object.keys(composedStories);
const testedStories = new Set([
'Default',
'TitleOnly',
'WithDescription',
'WithImage',
'WithImageMaxWidthFit',
'WithActions',
'WithActionsSingle',
'WithChildren',
]);
const untestedStories = storyNames.filter(name => !testedStories.has(name));
expect(untestedStories).toEqual([]);
});
it('renders Default story', () => {
const Story = composedStories.Default;
const { container } = testRender(
This is a description for the landing content. It can be a simple string or any React node.
This is a description for the landing content. It can be a simple string or any React node.