The resulting HTML printed in the Console section at the bottom of the Tests tab contains the contents of the Modal
In the Console section at the bottom of the Tests tab an empty string is displayed
0.88.2
https://codesandbox.io/s/semantic-ui-react-8etbr?file=/index.test.js
馃憢 Thanks for opening your first issue here! If you're reporting a 馃悶 bug, please make sure you've completed all the fields in the issue template so we can best help.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
It's not an of Modal component itself.
Modal uses ReactDOM.createPortal() to render its content to a document.body and it seems that there are issues in react-testing-library (https://github.com/testing-library/react-testing-library/issues/62). I checked the issue at it seems that there is no resolution for this case.
At least I check and selectors like getByText() work (https://codesandbox.io/s/semantic-ui-react-0oume?file=/index.test.js) as expected.
Please let us know if you will find a proper solution.
The solution of adding {container: document.body } as a render option worked for me.