browser_sync_disabled.js (752B)
1 /* Any copyright is dedicated to the Public Domain. 2 * http://creativecommons.org/publicdomain/zero/1.0/ */ 3 4 "use strict"; 5 6 /** 7 * Test that we don't show sync pane when it's disabled. 8 * See https://bugzilla.mozilla.org/show_bug.cgi?id=1536752. 9 */ 10 add_task(async function () { 11 await SpecialPowers.pushPrefEnv({ 12 set: [["identity.fxaccounts.enabled", false]], 13 }); 14 await openPreferencesViaOpenPreferencesAPI("paneGeneral", { 15 leaveOpen: true, 16 }); 17 ok( 18 gBrowser.contentDocument.getElementById("category-sync").hidden, 19 "sync category hidden" 20 ); 21 22 // Check that we don't get any results in sync when searching: 23 await evaluateSearchResults("sync", "no-results-message"); 24 25 BrowserTestUtils.removeTab(gBrowser.selectedTab); 26 });