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)

enhancement

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
Duplicate of this bug: 2018703

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.

Attachment #9547405 - Attachment is obsolete: true
Assignee: nobody → sdowne
Status: NEW → ASSIGNED
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
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
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
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch
Blocks: 2062310
No longer blocks: 2018692
QA Whiteboard: [qa-triage-done-c156/b155]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: