Bug 1352481 followup, set the preferences to enable the UI the tests search for, even on beta and release
authorPhil Ringnalda <philringnalda@gmail.com>
Sat, 27 May 2017 13:40:36 -0700
changeset 409135 2ffbc221accdcfbd042bf36b6f79ce3fef7d6cac
parent 409134 4000d93da08918e8651e8680e32dcdf09c9c9f33
child 409136 6a235092bda7c20cb83651d3404284fe36d04c1b
push id7391
push usermtabara@mozilla.com
push dateMon, 12 Jun 2017 13:08:53 +0000
treeherdermozilla-beta@2191d7f87e2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1352481
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1352481 followup, set the preferences to enable the UI the tests search for, even on beta and release
browser/components/preferences/in-content/tests/browser_search_subdialogs_within_preferences_2.js
browser/components/preferences/in-content/tests/browser_search_subdialogs_within_preferences_3.js
--- a/browser/components/preferences/in-content/tests/browser_search_subdialogs_within_preferences_2.js
+++ b/browser/components/preferences/in-content/tests/browser_search_subdialogs_within_preferences_2.js
@@ -1,15 +1,18 @@
 /*
 * This file contains tests for the Preferences search bar.
 */
 
 // Enabling Searching functionatily. Will display search bar form this testcase forward.
 add_task(async function() {
-  await SpecialPowers.pushPrefEnv({"set": [["browser.preferences.search", true]]});
+  await SpecialPowers.pushPrefEnv({"set": [
+    ["browser.preferences.search", true],
+    ["privacy.trackingprotection.ui.enabled", true]
+  ]});
 });
 
 /**
  * Test for searching for the "Saved Logins" subdialog.
  */
 add_task(async function() {
   await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
   evaluateSearchResults("sites are stored", "passwordsGroup");
--- a/browser/components/preferences/in-content/tests/browser_search_subdialogs_within_preferences_3.js
+++ b/browser/components/preferences/in-content/tests/browser_search_subdialogs_within_preferences_3.js
@@ -1,15 +1,18 @@
 /*
 * This file contains tests for the Preferences search bar.
 */
 
 // Enabling Searching functionatily. Will display search bar form this testcase forward.
 add_task(async function() {
-  await SpecialPowers.pushPrefEnv({"set": [["browser.preferences.search", true]]});
+  await SpecialPowers.pushPrefEnv({"set": [
+    ["browser.preferences.search", true],
+    ["browser.storageManager.enabled", true]
+  ]});
 });
 
 /**
  * Test for searching for the "Allowed Sites - Add-ons Installation" subdialog.
  */
 add_task(async function() {
   await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
   evaluateSearchResults("allowed to install add-ons", "addonsPhishingGroup");