[meta] Fix the flakiness in browser/components/search/test/browser
Categories
(Firefox :: Search, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox160 | --- | fixed |
People
(Reporter: florian, Assigned: florian)
References
(Blocks 1 open bug)
Details
(Keywords: meta)
Attachments
(1 external file)
Meta bug tracking the flakiness burndown of browser/components/search/test/browser.
Intermittent failures in this folder came from tests racing against async product behavior, two product bugs, and skip-if annotations that had outlived their cause.
Skip-if annotations
- Re-enables 2 tests whose skip-if annotations (debug and artifact builds) no longer fail.
Test-only patches
-
browser_search_lastused_pref.js(bug 2084265) - The previous test's urlbar search could fall in the same second, so the timestamp pref did not increase. The test now clears the pref inadd_setup. -
browser_contentSearchUI_default.js(bug 2084263) -ensureIconwaited for the icon property to differ from"null", but an unset property is"", so it returned early. It now waits for the expected icon. -
browser_search_telemetry_searchform.js(bug 2024061) - The test listened for the search form load only after the popup'shiddenevent, by which time the page had loaded. It also left text in the shared searchbar. Both promises are now created before the click, and the text is cleared.
Product fixes
-
browser_search_glean_serp_event_telemetry_categorization_enabled_by_pref.js(bug 1943499) - The test overrode the telemetry provider list before the slow startupSearchSERPTelemetry.init()finished and replaced it.init()calls made during initialization now share the pending one, and the test waits for it. -
browser_searchbar_openpopup.js(bug 2084262) -SearchOneOffs.invalidateCache()ignored calls made during a rebuild, leaving stale one-off buttons visible. Invalidations that arrive mid-rebuild are now kept, and the Windows 11 25H2 skip is removed.
| Assignee | ||
Comment 1•1 month ago
|
||
Comment 3•1 month ago
|
||
| bugherder | ||
Updated•1 month ago
|
Description
•