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)

task

Tracking

()

RESOLVED FIXED
151 Branch
Tracking Status
firefox151 --- fixed

People

(Reporter: maxx, Assigned: maxx)

References

Details

Attachments

(1 external file)

No description provided.
Duplicate of this bug: 2027065
  • 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."
Summary: Remove unnecessary console.logs from DiscoveryStreamFeed.test.js → Unnecessary WARN messages console logs in newtab unit tests
Summary: Unnecessary WARN messages console logs in newtab unit tests → Unnecessary WARN messages and console logs in newtab unit tests
  • 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
Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch

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

QA Whiteboard: [qa-triage-done-c152/b151]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: