Bug 1511216 - Intermittent preferences cloud storage test in verify mode r=jaws
authorPunam <pdahiya@mozilla.com>
Thu, 06 Dec 2018 17:53:12 +0000
changeset 508776 f9aa23e0cc9b1c546308a384777ef15eb8b88638
parent 508775 c65b841c580211588d5201699993efd2ebc471d0
child 508777 0de0365e049fea70c203850963577bbabdf88577
push id1905
push userffxbld-merge
push dateMon, 21 Jan 2019 12:33:13 +0000
treeherdermozilla-release@c2fca1944d8c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws
bugs1511216
milestone65.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 1511216 - Intermittent preferences cloud storage test in verify mode r=jaws Intermittent preferences UI cloud storage test failures in verify mode Differential Revision: https://phabricator.services.mozilla.com/D13846
browser/components/preferences/in-content/tests/browser_cloud_storage.js
--- a/browser/components/preferences/in-content/tests/browser_cloud_storage.js
+++ b/browser/components/preferences/in-content/tests/browser_cloud_storage.js
@@ -102,16 +102,17 @@ add_task(async function setup() {
   // Create mock Dropbox discovery and download folder for cloudstorage API
   // to detect dropbox provider app
   // Set prefs required to display second radio option
   // 'Save to Dropbox' under Downloads
   await SpecialPowers.pushPrefEnv({set: [
     [CLOUD_SERVICES_PREF + "api.enabled", true],
     [CLOUD_SERVICES_PREF + "storage.key", "Dropbox"],
   ]});
+
   let folderName = "CloudStorage";
   registerFakePath("Home", folderName);
   registerFakePath("LocalAppData", folderName);
   let status = await mock_dropbox();
   ok(Components.isSuccessCode(status),
     "Cloud Storage: dropbox mockup should be created successfully. status: " + status);
 });
 
@@ -148,11 +149,13 @@ add_task(async function() {
   is(chooseFolder.disabled, false, "chooseFolder button is enabled");
 
   // Test selecting third radio option keeps downloadFolder and chooseFolder elements disabled
   let alwaysAsk = doc.getElementById("alwaysAsk");
   saveToCloud.click();
   alwaysAsk.click();
   is(downloadFolder.disabled, true, "downloadFolder filefield is disabled");
   is(chooseFolder.disabled, true, "chooseFolder button is disabled");
+  saveTo.click();
+  ok(saveTo.selected, "Reset back first option as selected by default");
 
   gBrowser.removeCurrentTab();
 });