diff --git a/src/internal/components/portal/__tests__/portal.test.tsx b/src/internal/components/portal/__tests__/portal.test.tsx index 5fc80546e3..2c15c958fa 100644 --- a/src/internal/components/portal/__tests__/portal.test.tsx +++ b/src/internal/components/portal/__tests__/portal.test.tsx @@ -193,18 +193,16 @@ describe('Portal', () => { }); describe('when a container is not provided', () => { - test('renders to a div under body', () => { + test('renders content under body', () => { renderPortal({ children:
Hello!
}); - expect(document.querySelector('body > div > p')).toHaveTextContent('Hello!'); + expect(document.querySelector('body > p')).toHaveTextContent('Hello!'); }); test('removes container element when unmounted', () => { const { unmount } = renderPortal({ children:Hello!
}); - // The extra