import * as React from 'react';
import { render } from '../../../vitest/render';
import { TabPanel } from './TabPanel';
describe('TabPanel', () => {
it('renders visible panel with default state', () => {
const { container } = render(
Panel content
);
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders hidden panel', () => {
const { container } = render(
Hidden panel content
);
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders with hidden=false explicitly', () => {
const { container } = render(
Visible panel content
);
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders with complex content', () => {
const { container } = render(
Panel Title
Panel paragraph with bold text
);
expect(container).toMatchInlineSnapshot(`
Panel Title
Panel paragraph with
bold text
`);
});
it('renders with string content', () => {
const { container } = render(Simple text content);
expect(container).toMatchInlineSnapshot(`
`);
});
it('renders hidden panel with complex content', () => {
const { container } = render(
);
expect(container).toMatchInlineSnapshot(`
`);
});
});