Closed
Bug 2027059
Opened 8 months ago
Closed 7 months ago
Unnecessary WARN messages and console logs in newtab unit tests
Categories
(Firefox :: New Tab Page, task)
Firefox
New Tab Page
Tracking
()
RESOLVED
FIXED
151 Branch
| Tracking | Status | |
|---|---|---|
| firefox151 | --- | fixed |
People
(Reporter: maxx, Assigned: maxx)
References
Details
Attachments
(1 external file)
No description provided.
| Assignee | ||
Comment 2•8 months ago
|
||
- Remove console.log entries on DiscoveryStreamFeed.test.js
- Fix WARN message outputs:
- Warning 1: "No external component configuration found for type: SEARCH"
- Warning 2: "about:robots is not allowed for anchor targets."
| Assignee | ||
Updated•8 months ago
|
Summary: Remove unnecessary console.logs from DiscoveryStreamFeed.test.js → Unnecessary WARN messages console logs in newtab unit tests
| Assignee | ||
Updated•8 months ago
|
Summary: Unnecessary WARN messages console logs in newtab unit tests → Unnecessary WARN messages and console logs in newtab unit tests
| Assignee | ||
Comment 3•8 months ago
|
||
- Remove leftover console.log debug statements from DiscoveryStreamFeed tests
- Replace mount() with shallow() in Search tests to avoid triggering ExternalComponentWrapper's useEffect, which warned when no config was present
- Add Logo.test.jsx to restore coverage lost from the shallow() switch
- Fix ExternalComponentWrapper tests that used default INITIAL_STATE (no SEARCH config): provide proper state and importModule stub for structural tests, and assert on the expected warn in the no-config behavior test
- Change DSCard DEFAULT_PROPS url from "about:robots" to "https://example.com" to avoid SafeAnchor's protocol validation warning
Pushed by mcrawford@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/cac5a8b26456
https://hg.mozilla.org/integration/autoland/rev/f0475dde2006
Remove WARN messages and console logs in newtab unit tests r=home-newtab-reviewers,thecount
Comment 5•7 months ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 7 months ago
status-firefox151:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch
Comment 6•7 months ago
|
||
Authored by https://github.com/maxxcrawford
https://github.com/mozilla/enterprise-firefox/commit/cac5a8b26456b547a5c89a8d3c254df36f75c00b
[enterprise-main] Bug 2027059 - Remove WARN messages and console logs in newtab unit tests r=home-newtab-reviewers,thecount
Updated•6 months ago
|
QA Whiteboard: [qa-triage-done-c152/b151]
You need to log in
before you can comment on or make changes to this bug.
Description
•