This is a text component which uses HTML.
', + metadata: { displayName: 'Introduction to Testing' }, +}; + +describe('EditorPage', () => { + beforeEach(() => { + initializeMocks(); + }); + + test('it can display the Text (html) editor in a modal', async () => { + jest.spyOn(editorCmsApi, 'fetchBlockById').mockImplementationOnce(async () => ( + { status: 200, data: snakeCaseObject(fieldsHtml) } + )); + + render(This is a text component which uses HTML.
', + metadata: { displayName: 'Introduction to Testing' }, +}; + +describe('EditorContainer', () => { + beforeEach(() => { + initializeMocks(); + }); + + test('it displays a confirmation dialog when closing the editor modal', async () => { + jest.spyOn(editorCmsApi, 'fetchBlockById').mockImplementationOnce(async () => ( + { status: 200, data: snakeCaseObject(fieldsHtml) } + )); + + render(