Bug 1333385 - fix netmonitor b64 test after mc-merge;r=me a=test-only
☠☠ backed out by e8cb89ffc23f ☠ ☠
authorJulian Descottes <jdescottes@mozilla.com>
Fri, 27 Jan 2017 12:08:47 +0100
changeset 358914 b87d0d68c15a
parent 358913 7bae7aaeaead
child 358915 fc97fee91136
push id10674
push usercbook@mozilla.com
push dateFri, 03 Feb 2017 11:15:54 +0000
treeherdermozilla-aurora@2cdc3dfa46c2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme, test-only
bugs1333385
milestone53.0a2
Bug 1333385 - fix netmonitor b64 test after mc-merge;r=me a=test-only MozReview-Commit-ID: EndUt4g5BK2
devtools/client/netmonitor/test/browser_net_json-b64.js
--- a/devtools/client/netmonitor/test/browser_net_json-b64.js
+++ b/devtools/client/netmonitor/test/browser_net_json-b64.js
@@ -18,23 +18,23 @@ add_task(function* () {
   RequestsMenu.lazyUpdate = false;
 
   let wait = waitForNetworkEvents(monitor, 1);
   yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
     content.wrappedJSObject.performRequests();
   });
   yield wait;
 
-  wait = waitForDOM(document, "#panel-3");
+  wait = waitForDOM(document, "#response-panel");
   EventUtils.sendMouseEvent({ type: "mousedown" },
     document.getElementById("details-pane-toggle"));
-  document.querySelector("#tab-3 a").click();
+  document.querySelector("#response-tab").click();
   yield wait;
 
-  let tabpanel = document.querySelector("#panel-3");
+  let tabpanel = document.querySelector("#response-panel");
 
   is(tabpanel.querySelector(".response-error-header") === null, true,
     "The response error header doesn't have the intended visibility.");
   let jsonView = tabpanel.querySelector(".tree-section .treeLabel") || {};
   is(jsonView.textContent === L10N.getStr("jsonScopeName"), true,
     "The response json view has the intended visibility.");
   is(tabpanel.querySelector(".editor-mount iframe") === null, true,
     "The response editor doesn't have the intended visibility.");