import * as React from 'react';
import { render } from '@testing-library/react';
import { ModalContent } from '../ModalContent';
const modalContentProps = {
boxId: 'boxId',
labelId: 'labelId',
descriptorId: 'descriptorId'
};
test('Modal Content Test only body', () => {
const { asFragment } = render(
This is a ModalBox header
);
expect(asFragment()).toMatchSnapshot();
});
test('Modal Content Test isOpen', () => {
const { asFragment } = render(
This is a ModalBox header
);
expect(asFragment()).toMatchSnapshot();
});
test('Modal Content Test description', () => {
const { asFragment } = render(
This is a ModalBox header
);
expect(asFragment()).toMatchSnapshot();
});
test('Modal Content Test with footer', () => {
const { asFragment } = render(
This is a ModalBox header
);
expect(asFragment()).toMatchSnapshot();
});
test('Modal Content test without footer', () => {
const { asFragment } = render(
This is a ModalBox header
);
expect(asFragment()).toMatchSnapshot();
});
test('Modal Content Test with onclose', () => {
const { asFragment } = render(
undefined}
isOpen
{...modalContentProps}
>
This is a ModalBox header
);
expect(asFragment()).toMatchSnapshot();
});
test('Modal Test with custom header', () => {
const header = ;
const { asFragment } = render(
undefined}
isOpen
{...modalContentProps}
>
This is a ModalBox header
);
expect(asFragment()).toMatchSnapshot();
});
test('Modal Test with custom footer', () => {
const footer = ;
const { asFragment } = render(
undefined}
isOpen
{...modalContentProps}
>
This is a ModalBox header
);
expect(asFragment()).toMatchSnapshot();
});