-
Epic
-
Resolution: Unresolved
-
Undefined
-
None
-
None
-
None
-
Migrate enzyme unit tests to React Testing Library
-
Quality / Stability / Reliability
-
0% To Do, 0% In Progress, 100% Done
-
False
-
-
False
-
None
-
None
-
None
Migrate enzyme unit tests to React Testing Library for simplicity, increased productivity, and better community support. A key advantage of the React Testing Library is that it closely mimics real user interactions, similar to what can be achieved with end-to-end (e2e) tests.
OCP/Telco Definition of Done
Epic Template descriptions and documentation.
<--- Cut-n-Paste the entire contents of this description into your new Epic --->
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.
Scenarios
- No of unit tests files in public/{}tests{}: 275
- No of unit tests files in packages directory: 1241
See attached files for details.
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.
Dependencies (internal and external)
- ...
Previous Work (Optional):
- …
Open questions::
- …
Done Checklist
- CI - CI is running, tests are automated and merged.
- Release Enablement <link to Feature Enablement Presentation>
- DEV - Upstream code and tests merged: <link to meaningful PR or GitHub Issue>
- DEV - Upstream documentation merged: <link to meaningful PR or GitHub Issue>
- DEV - Downstream build attached to advisory: <link to errata>
- QE - Test plans in Polarion: <link or reference to Polarion>
- QE - Automated tests merged: <link or reference to automated tests>
- DOC - Downstream documentation merged: <link to meaningful PR>
- is cloned by
-
CONSOLE-4753 OCP 4.21 - Migrate enzyme unit tests to React Testing Library
-
- In Progress
-
- relates to
-
CONSOLE-4562 OCP 4.20 - Console Dependencies & Tech Debt
-
- In Progress
-
-
ODC-7805 ODC: Migrate enzyme unit tests to React Testing Library
-
- Dev Complete
-