import React from 'react'; import { render, screen } from '@testing-library/react'; import { WizardBody } from '../WizardBody'; test('renders children without additional props', () => { const { container } = render(content); expect(container).toHaveTextContent('content'); expect(container).not.toHaveAttribute('aria-label'); expect(container).not.toHaveAttribute('aria-labelledby'); }); test('has no padding className when hasNoBodyPadding is not specified', () => { render(content); expect(screen.getByText('content')).not.toHaveClass('pf-m-no-padding'); }); test('has padding className when hasNoPadding is specified', () => { render(content); expect(screen.getByText('content')).toHaveClass('pf-m-no-padding'); }); test('wrapper element is of type div when component is not specified', () => { const { container } = render(content); expect(container.firstElementChild?.tagName).toEqual('DIV'); }); test('renders with custom component', () => { const { container } = render(content); expect(container.firstElementChild?.tagName).toEqual('MAIN'); });