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)

task
Points:
2

Tracking

()

RESOLVED FIXED
104 Branch
Tracking Status
firefox104 --- fixed

People

(Reporter: dao, Assigned: dao)

References

Details

(Whiteboard: [fidefe-colorway-closet])

Attachments

(1 file)

See https://treeherder.mozilla.org/jobs?repo=try&revision=27be0f983cb38e891cee519b3d8862d82e6cc487&selectedTaskRun=U7_zLRTvS4ey-bP5saDE_w.0:

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

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();
Blocks: 1780406
Severity: -- → N/A
Points: --- → 2
Priority: -- → P1
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
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.

Attachment

General

Created:
Updated:
Size: