Closed
Bug 2018702
Opened 7 months ago
Closed 2 months ago
Migrate simple Redux unit tests to Jest/RTL
Categories
(Firefox :: New Tab Page, enhancement)
Firefox
New Tab Page
Tracking
()
RESOLVED
FIXED
155 Branch
| Tracking | Status | |
|---|---|---|
| firefox155 | --- | fixed |
People
(Reporter: maxx, Assigned: thecount)
References
Details
Attachments
(2 files, 1 obsolete file)
These use a Redux Provider wrapper but have moderate test complexity.
Migrate the following tests:
- Card.test.jsx
- CollapsibleSection.test.jsx
- ContextMenu.test.jsx
- ConfirmDialog.test.jsx
- LinkMenu.test.jsx
- MessageWrapper.test.jsx
- DiscoveryStreamAdmin.test.jsx
- DiscoveryStreamBase.test.jsx
- Weather.test.jsx
- Search.test.jsx
- ActivationWindowMessage.test.jsx
| Reporter | ||
Comment 2•7 months ago
|
||
Migrate the following component tests from Enzyme to React Testing Library:
- ActivationWindowMessage
- Card
- CollapsibleSection
- ConfirmDialog
- ContextMenu
- DiscoveryStreamAdmin
- DiscoveryStreamBase
- LinkMenu
- MessageWrapper
- Search
- Weather
Also add matchMedia and performance.mark mocks to jest-setup.js to
support TopSites and ComponentPerfTimer rendering in tests.
Updated•6 months ago
|
Attachment #9547405 -
Attachment is obsolete: true
| Assignee | ||
Comment 3•2 months ago
|
||
Updated•2 months ago
|
Assignee: nobody → sdowne
Status: NEW → ASSIGNED
Comment 4•2 months ago
|
||
Updated•2 months ago
|
Attachment #9618901 -
Attachment description: WIP: Bug 2018702 - Migrate simple Redux unit tests to Jest/RTL → WIP: Bug 2018702 - Migrate simple Redux unit tests to Jest/RTL. r?thecount
Updated•2 months ago
|
Attachment #9618901 -
Attachment description: WIP: Bug 2018702 - Migrate simple Redux unit tests to Jest/RTL. r?thecount → WIP: Bug 2018702 - Migrate simple Redux unit tests to Jest/RTL. r=#home-newtab-reviewers
Updated•2 months ago
|
Attachment #9618901 -
Attachment description: WIP: Bug 2018702 - Migrate simple Redux unit tests to Jest/RTL. r=#home-newtab-reviewers → Bug 2018702 - Migrate simple Redux unit tests to Jest/RTL. r=#home-newtab-reviewers
Pushed by sdowne@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/ac4fbfb7d764
https://hg.mozilla.org/integration/autoland/rev/2c8e234be896
Migrate simple Redux unit tests to Jest/RTL.
Comment 6•2 months ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
status-firefox155:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch
| Assignee | ||
Updated•1 month ago
|
Updated•1 month ago
|
QA Whiteboard: [qa-triage-done-c156/b155]
You need to log in
before you can comment on or make changes to this bug.
Description
•