Bug 1441376 - Proof of concept. draft
authorPaolo Amadini <paolo.mozmail@amadzone.org>
Fri, 02 Mar 2018 15:34:48 +0000
changeset 762517 cf0e2bd94b8b638e694e6bd36d6a554a771d5138
parent 762516 bddc2ca6492179e4b287c3c05f249bba1350e8ef
push id101187
push userpaolo.mozmail@amadzone.org
push dateFri, 02 Mar 2018 15:39:17 +0000
bugs1441376
milestone60.0a1
Bug 1441376 - Proof of concept. MozReview-Commit-ID: 16ZAkNXPiat
browser/components/customizableui/test/browser_remote_tabs_button.js
--- a/browser/components/customizableui/test/browser_remote_tabs_button.js
+++ b/browser/components/customizableui/test/browser_remote_tabs_button.js
@@ -37,16 +37,18 @@ add_task(async function testSyncRemoteTa
   ok(syncRemoteTabsBtn, "The sync remote tabs button was added to the Panel Menu");
   // click the button - the panel should open.
   syncRemoteTabsBtn.click();
   await viewShown;
   ok(remoteTabsPanel.getAttribute("visible"), "Sync Panel is in view");
 
   // Find and click the "setup" button.
   let syncNowButton = document.getElementById("PanelUI-remotetabs-syncnow");
+  // A previous test may have triggered syncing.
+  await waitForCondition(() => !syncNowButton.disabled);
   syncNowButton.click();
   info("The sync now button was clicked");
 
   await waitForCondition(() => syncWasCalled);
 });
 
 add_task(async function asyncCleanup() {
   // reset the panel UI to the default state