Skip to content

Write a Unit Test for "Input" component #146

@sunilk429

Description

@sunilk429

Issue Description

The Input component currently lacks any unit tests.

Expected Behavior

  • Unit tests should be added for the Input component to verify:
    • Proper rendering with provided props such as label, value, placeholder, and errorMessage.
    • Triggering of the onChange handler when the input value changes.
    • Application of custom class names.
    • Proper handling of the disabled prop.

Current Behavior

There are no unit tests for the Input component in the project.

Reproducibility

  • This issue is reproducible
  • This issue is not reproducible

You can reproduce this issue by navigating to the _tests_ folder and confirming that there are no unit tests for the Input component.

Steps to Reproduce

  1. Navigate to the _tests_ folder.
  2. Verify that no unit tests exist for the Input component.

Severity/Priority

  • Critical
  • High
  • Medium
  • Low

Checklist

  • I have read and followed the project's code of conduct.
  • I have searched for similar issues before creating this one.
  • I have provided all the necessary information to understand and reproduce the issue.
  • I am willing to contribute to the resolution of this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions