J-0987 / drivers-license-frontend

0 stars 0 forks source link

Unit Tests-TextInput #21

Open J-0987 opened 4 hours ago

J-0987 commented 4 hours ago

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.