import { render } from '@testing-library/react'; import React from 'react'; import { docNodeBasicJSON } from '@test-fixtures/object-nodes'; import { TwitterEditor } from '../'; test('should place the editor within the correct element', () => { const { getByTestId, getByRole } = render( , ); const editor = getByRole('textbox'); const wrapper = getByTestId('remirror-editor'); expect(wrapper).toContainElement(editor); });