Hello! Just wanted to ask if there is any test cases references on how to test for the onChange handler of the editor? I only tested the render of the component. Below is my current code. I'm using react-testing-library as of the moment. Any help would be appreciated. Thank you in advance!
Hello! Just wanted to ask if there is any test cases references on how to test for the onChange handler of the editor? I only tested the render of the component. Below is my current code. I'm using react-testing-library as of the moment. Any help would be appreciated. Thank you in advance!
`describe(' ', () => {
const disclaimerTextField = LandingPageSubMenu.DISCLAIMER.fields[0]
const mockCustomOnChange = jest.fn()
const props = { field: disclaimerTextField, value: '', customOnChange: mockCustomOnChange, registerField: { ref: jest.fn() } }
test('renders', async () => { render(<RichTextEditor {...props} />)
}) })`