import { render } from '@testing-library/react';
import { QuestionCircleIcon } from '@patternfly/react-icons';
import UnauthorizedAccess from './UnauthorizedAccess';
describe('UnauthorizedAccess component', () => {
const initialProps = {
serviceName: 'Foo',
};
it('should render', () => {
const { container } = render();
expect(container.firstChild).toMatchSnapshot();
});
it('should apply custom styles', () => {
const { container } = render();
expect(container.firstChild).toMatchSnapshot();
});
it('should use custom icon', () => {
const { container } = render();
expect(container.firstChild).toMatchSnapshot();
});
it('should not show buttons', () => {
const { container } = render();
expect(container.firstChild).toMatchSnapshot();
});
it('should show custom body text', () => {
const { container } = render();
expect(container.firstChild).toMatchSnapshot();
});
it('should show custom title', () => {
const { container } = render();
expect(container.firstChild).toMatchSnapshot();
});
it('should show custom actions', () => {
const primaryAction =
;
const secondaryActions = [
,
];
const { container } = render();
expect(container.firstChild).toMatchSnapshot();
});
});