diff --git a/content/testing-react-wordpress-blocks/4-writing-block-tests.md b/content/testing-react-wordpress-blocks/4-writing-block-tests.md index ef606cb..eb233f3 100644 --- a/content/testing-react-wordpress-blocks/4-writing-block-tests.md +++ b/content/testing-react-wordpress-blocks/4-writing-block-tests.md @@ -104,7 +104,7 @@ describe("Editor componet", () => { const setAttributes = jest.fn(); //render component - const {getByLabel} = render( + const {getByLabelText} = render( { ); //Get the input by label text - const input getByLabelText('Edit Value'); + const input = getByLabelText('Edit Value'); //Fire a change event on the input fireEvent.change(input, { target: { value: "New Value" }