diff --git a/src/Components/ConfirmDeleteDomain/ConfirmDeleteDomain.test.tsx b/src/Components/ConfirmDeleteDomain/ConfirmDeleteDomain.test.tsx new file mode 100644 index 0000000..c0a0297 --- /dev/null +++ b/src/Components/ConfirmDeleteDomain/ConfirmDeleteDomain.test.tsx @@ -0,0 +1,20 @@ +import React from 'react'; +import { render, screen } from '@testing-library/react'; +import ConfirmDeleteDomain from './ConfirmDeleteDomain'; +import '@testing-library/jest-dom'; +import { Domain } from '../../Api'; + +const domain: Domain = {} as Domain; + +test('expect empty when isOpen is false', () => { + const root = render(); + expect(root.container).toBeEmptyDOMElement(); +}); + +test('expect modal displayed', () => { + const root = render(); + root.debug(); + + expect(screen.getByRole('heading')).toHaveTextContent('Delete identity domain registration'); + // TODO Add more expectations +});