import React from 'react'; import { render, screen } from '@testing-library/react'; import '@testing-library/jest-dom'; import { NotificationDrawerBody } from '../NotificationDrawerBody'; describe('NotificationDrawerBody', () => { test('renders with PatternFly Core styles', () => { const { asFragment } = render(); expect(asFragment()).toMatchSnapshot(); }); test('className is added to the root element', () => { render(); expect(screen.getByTestId('test-id')).toHaveClass('extra-class'); }); });