frontend-app-admin-portal
frontend-app-admin-portal copied to clipboard
feat: testing framework POC
Initial consolidation of testing framework POC. Consolidate contexts, constants and API structures.
A reference tech is Pact that does a similar process with HTTP responses, while this frameworks hopes to mimic it with frontend context providers. It will allow for faster testing across features that have been consolidated.
Current POC is using Content Highlights. Currently WIP.
Pushes will look at the effect on test coverage and possible testing runtimes since we are reducing the overall amount of imports required per test.
For all changes
- [ ] Ensure adequate tests are in place (or reviewed existing tests cover changes)
Only if submitting a visual change
- [ ] Ensure to attach screenshots
- [ ] Ensure to have UX team confirm screenshots
Codecov Report
Patch coverage: 97.72%
and project coverage change: +0.56%
:tada:
Comparison is base (
cd82047
) 83.21% compared to head (fa0fe39
) 83.77%.
Additional details and impacted files
@@ Coverage Diff @@
## master #959 +/- ##
==========================================
+ Coverage 83.21% 83.77% +0.56%
==========================================
Files 400 406 +6
Lines 8697 8722 +25
Branches 1798 1800 +2
==========================================
+ Hits 7237 7307 +70
+ Misses 1422 1377 -45
Partials 38 38
Files Changed | Coverage Δ | |
---|---|---|
...ibility/ContentHighlightCatalogVisibilityAlert.jsx | 100.00% <ø> (+6.66%) |
:arrow_up: |
...ents/ContentHighlights/ContentHighlightSetCard.jsx | 100.00% <ø> (+7.69%) |
:arrow_up: |
...ontentHighlights/CurrentContentHighlightHeader.jsx | 100.00% <ø> (ø) |
|
...ights/HighlightStepper/ContentHighlightStepper.jsx | 100.00% <ø> (+17.72%) |
:arrow_up: |
.../HighlightStepper/SelectContentSelectionStatus.jsx | 100.00% <ø> (+8.33%) |
:arrow_up: |
...ontentHighlights/ZeroState/ZeroStateHighlights.jsx | 100.00% <ø> (+8.33%) |
:arrow_up: |
src/components/ContentHighlights/data/constants.js | 100.00% <ø> (ø) |
|
...ty/ContentHighlightCatalogVisibilityRadioInput.jsx | 86.27% <75.00%> (+7.84%) |
:arrow_up: |
...ghtStepper/HighlightStepperSelectContentSearch.jsx | 100.00% <100.00%> (+17.64%) |
:arrow_up: |
src/components/ContentHighlights/data/utils.js | 100.00% <100.00%> (+7.69%) |
:arrow_up: |
... and 6 more |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.