browser_toolbar_collapsed_states.js fails when run twice in the same browser (mochitest-browser-chrome-repeat)
Categories
(Firefox :: Toolbars and Customization, task)
Tracking
()
| 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.
| Assignee | ||
Comment 1•19 days ago
|
||
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.
Comment 3•16 days ago
|
||
| bugherder | ||
Updated•2 days ago
|
Description
•