我正在使用这个组件:
<AceEditor
value={data}
className="code-editor"
mode="json"
theme="dracula"
onChange={setData}
name="data"
height="320px"
width="100%"
editorProps={{ $blockScrolling: true }}
showPrintMargin={false}
highlightActiveLine={false}
/>
那么,使用 react-testing-library 如何获取此组件并触发onChange事件?我试图找到一些类似getByComponentName或类似的功能,但没有成功。