import RTE from "@coralproject/rte" ; import { ReactTestInstance } from "react-test-renderer" ; import { act , findParentWithType , waitForElement , within , } from "coral-framework/testHelpers" ; param instance param label returns export default function waitForRTE ( instance , label ) { return act ( ( ) => waitForElement ( ( ) => findParentWithType ( within ( instance ) . getByLabelText ( label , { exact : false , selector : "div" , } ) , RTE ) ! ) ) ; }