Closed
Bug 1780267
Opened 2 years ago
Closed 2 years ago
[Colorway Closet] browser_html_list_view.js and browser_monochromatic_aboutaddons.js fail with browser.theme.colorway-closet = true
Categories
(Toolkit :: Add-ons Manager, task, P1)
Toolkit
Add-ons Manager
Tracking
()
RESOLVED
FIXED
104 Branch
Tracking | Status | |
---|---|---|
firefox104 | --- | fixed |
People
(Reporter: dao, Assigned: dao)
References
Details
(Whiteboard: [fidefe-colorway-closet])
Attachments
(1 file)
TEST-UNEXPECTED-FAIL | toolkit/mozapps/extensions/test/browser/browser_html_list_view.js | Empty addons message visible -
TEST-UNEXPECTED-FAIL | toolkit/mozapps/extensions/test/browser/browser_monochromatic_aboutaddons.js | Uncaught exception in test - at chrome://mochitests/content/browser/toolkit/mozapps/extensions/test/browser/browser_monochromatic_aboutaddons.js:42 - TypeError: can't access property "querySelector", colorwayList is null
Updated•2 years ago
|
The old colorways section (which browser_monochromatic_aboutaddons.js
tests) relies on the colorway closet pref disabled in order to appear (searchfox). We could update the test to run the current test cases with the pref disabled, then add a new test case verifying the old section does not appear if the pref is enabled.
As for browser_html_list_view.js
, the assertion that fails is when we check if the empty addons message is visible (searchfox). It only fails for themes because the colorway closet card remains on the page (if the pref is enabled); the assertion requires that all sections of the page are removed. Therefore we can just add the following to fix it in testEmptyMessage
:
let colorwaysSection = getSection(doc, `colorways-section`);
colorwaysSection.remove();
Assignee | ||
Updated•2 years ago
|
Severity: -- → N/A
Points: --- → 2
Priority: -- → P1
Assignee | ||
Comment 2•2 years ago
|
||
Updated•2 years ago
|
Assignee: nobody → dao+bmo
Status: NEW → ASSIGNED
Pushed by dgottwald@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/70e6d4f14fc0 [Colorway Closet] Make browser_html_list_view.js and browser_monochromatic_aboutaddons.js work with browser.theme.colorway-closet = true. r=rpl
Comment 4•2 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•