Test: Ensure TextInput renders without errors.
Expected Outcome: The component should render an input field with a label.
Label Display Test
Test: Pass a label prop and verify that the label appears on the screen.
Expected Outcome: The label should match the value of the label prop.
Typing Test
Test: Simulate typing into the TextInput component.
Expected Outcome: The onChange function should be called with the correct input value each time the user types.
Error Message Display Test
Test: Pass an error prop and verify that it displays an error message below the input field.
Expected Outcome: The error message should match the content of the error prop.
Basic Render Test
Test: Ensure TextInput renders without errors. Expected Outcome: The component should render an input field with a label. Label Display Test
Test: Pass a label prop and verify that the label appears on the screen. Expected Outcome: The label should match the value of the label prop. Typing Test
Test: Simulate typing into the TextInput component. Expected Outcome: The onChange function should be called with the correct input value each time the user types. Error Message Display Test
Test: Pass an error prop and verify that it displays an error message below the input field. Expected Outcome: The error message should match the content of the error prop.