Closed Bug 2091368 Opened 19 days ago Closed 16 days ago

browser_toolbar_collapsed_states.js fails when run twice in the same browser (mochitest-browser-chrome-repeat)

Categories

(Firefox :: Toolbars and Customization, task)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: florian, Assigned: florian)

Details

Attachments

(1 external file)

browser_toolbar_collapsed_states.js fails on its second run in the new browser-chrome repeat jobs with 2 == 1 (1 == 0 on macOS).

The test opens about:newtab with waitForLoad: false and expects the bookmarks toolbar (visibility newtab) to be shown right away. That only works when the tab gets a preloaded about:newtab browser. The first run uses up the preloaded browser, so on the second run the new tab is still on about:blank when the test checks.

The fix makes the test wait for the toolbar's toolbarvisibilitychange event.

The test assumed about:newtab opens in the preloaded browser, which is already on about:newtab when selected. The test consumes that browser, so when it runs again no preloaded one exists yet, and the new tab is still on about:blank when the assertion runs.

Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/f197ae179fb8 https://hg.mozilla.org/integration/autoland/rev/a28a158df96f Wait for the bookmarks toolbar to show in browser_toolbar_collapsed_states.js, r=places-reviewers,mak.
Status: ASSIGNED → RESOLVED
Closed: 16 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
QA Whiteboard: [qa-triage-done-c163/b162]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: