Skip to content

[Feature] add unit and UI tests #231

@marcinkrasowski

Description

@marcinkrasowski

Is your feature request related to a problem? Please describe.

We need to ensure robust testing coverage for all our components and blocks by adding unit tests and UI tests. To accelerate the process, we aim to leverage AI capabilities to automatically generate tests, which will then be manually reviewed, adjusted, and expanded by the development team to ensure accuracy and completeness.

Additionally, we need to assess the feasibility and best practices of testing UI components using Storybook and Vitest, ensuring a reliable and efficient UI testing environment.

Describe the solution you'd like

  1. Unit Testing:
    • Add unit tests for all components and blocks to verify their functionality in isolation.
    • Leverage AI to automatically write test scenarios for existing components using tools like Jest/Vitest and React Testing Library.
    • Manually review AI-generated tests for correctness and expand them to address gaps.
  2. UI Testing:
    • Add visual and behavior-focused tests for components using a combination of visual regression tools and Storybook.
    • Investigate and implement UI testing workflows with Vitest integrated into Storybook.
  3. Tooling and configuration:
    • Ensure seamless integration of all testing tools into the CI/CD pipeline.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    Projects

    Status

    Backlog

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions