message: Fix play to hide red bot
diff: @@ -71,6 +71,17 @@ window.onload = function() {
  playButton.addEventListener("click", function() {
  document.getElementById("result-runs").innerHTML = "0";
  document.getElementById("result-failures").innerHTML = "0";
  + let keys = Object.keys(openedWindowIds);
  + for (let i=0 ; i<keys.length ; i++) {
  + browser.tabs.query({windowId: parseInt(keys[i])})
  + .then(function(tabs) {
  + for(let j=0 ; j<tabs.length ; j++) {
  + browser.pageAction.hide(tabs[j].id);
  + }
  + }).catch(function(e) {
  + console.error("error:", e);
  + });
  + }
  initAllSuite();
  setCaseScrollTop(getSelectedCase());
  play();
  @@ -84,12 +95,36 @@ window.onload = function() {
  playSuiteButton.addEventListener("click", function() {
  document.getElementById("result-runs").innerHTML = "0";
  document.getElementById("result-failures").innerHTML = "0";
  + console.error("playSuite");
  + let keys = Object.keys(openedWindowIds);
  + for (let i=0 ; i<keys.length ; i++) {
  + browser.tabs.query({windowId: parseInt(keys[i])})
  + .then(function(tabs) {
  + for(let j=0 ; j<tabs.length ; j++) {
  + browser.pageAction.hide(tabs[j].id);
  + }
  + }).catch(function(e) {
  + console.error("error:", e);
  + });
  + }
  initAllSuite();
  playSuite(0);
  });
  playSuitesButton.addEventListener("click", function() {
  document.getElementById("result-runs").innerHTML = "0";
  document.getElementById("result-failures").innerHTML = "0";
  + console.error("playSuites");
  + let keys = Object.keys(openedWindowIds);
  + for (let i=0 ; i<keys.length ; i++) {
  + browser.tabs.query({windowId: parseInt(keys[i])})
  + .then(function(tabs) {
  + for(let j=0 ; j<tabs.length ; j++) {
  + browser.pageAction.hide(tabs[j].id);
  + }
  + }).catch(function(e) {
  + console.error("error:", e);
  + });
  + }
  initAllSuite();
  playSuites(0);
  });
  