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