-
Epic
-
Resolution: Unresolved
-
Undefined
-
None
-
None
-
None
-
ODC: Migrate enzyme unit tests to React Testing Library
-
False
-
-
False
-
Not Selected
-
In Progress
-
OCPSTRAT-1844 - TechDebt - OCP Console - Dependency Cleanup
-
0
-
-
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
- is related to
-
CONSOLE-4180 OCP 4.20 - Migrate enzyme unit tests to React Testing Library
-
- Dev Complete
-
- links to
(1 links to)