Uploaded image for project: 'OpenShift Dev Console'
  1. OpenShift Dev Console
  2. ODC-7805

ODC: Migrate enzyme unit tests to React Testing Library

XMLWordPrintable

    • ODC: Migrate enzyme unit tests to React Testing Library
    • False
    • Hide

      None

      Show
      None
    • False
    • Not Selected
    • In Progress
    • OCPSTRAT-1844 - TechDebt - OCP Console - Dependency Cleanup
    • 0
    • OCPSTRAT-1844TechDebt - OCP Console - Dependency Cleanup
    • 0% To Do, 0% In Progress, 100% Done
    • Not Supported

      Epic Goal

      • Migrate enzyme unit tests to React Testing Library for simplicity, increased productivity, and better community support.

      Why is this important?

      • Simplicity: React Testing Library provides a simpler API for writing tests, making the process more straightforward.
      • Increased productivity: Due to its simplicity and intuitive API, developers can write tests more quickly and efficiently, leading to increased productivity.
      • Better community support: React Testing Library has a large and active community, which means better support, more frequent updates, and a larger pool of resources for learning and troubleshooting.
      • Real user interactions: React Testing Library closely mimics real user interactions, providing more accurate and meaningful test results. This is similar to what can be achieved with end-to-end (e2e) tests, but without the complexity and overhead of full e2e testing.

      Acceptance Criteria

      • Convert all existing Enzyme unit tests to React Testing Library (RTL).
      • The RTL tests MUST run successfully in CI
      • Remove all existing Enzyme unit tests.
      • Write new tests in RTL.

       

      Additional details

      https://docs.google.com/document/d/1mvN38EO5F2YPHq-l7insXSotglzEh7lFgWkl7J6DUU8/edit?tab=t.0

       

              viraj-1 Vikram Raj
              viraj-1 Vikram Raj
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: