Bug 1412761 - remove dup test case;r=fischer draft
authorFred Lin <gasolin@gmail.com>
Wed, 01 Nov 2017 09:54:13 +0800
changeset 694299 da7079dd73d672cea2233d30e34e2d6e7e36d49b
parent 693830 c2fe4b3b1b930b3e7fdb84eae44cec165394f322
child 694300 11108a19577bc58a2ac9fcc8cbac5d2a238dddbe
child 694651 4ea1ee9f31a3065cc75c9075de23270b07f0ed32
push id88099
push userbmo:gasolin@mozilla.com
push dateTue, 07 Nov 2017 17:07:50 +0000
reviewersfischer
bugs1412761
milestone58.0a1
Bug 1412761 - remove dup test case;r=fischer MozReview-Commit-ID: 9MLGQI3SiIf
browser/extensions/onboarding/test/browser/browser_onboarding_uitour.js
--- a/browser/extensions/onboarding/test/browser/browser_onboarding_uitour.js
+++ b/browser/extensions/onboarding/test/browser/browser_onboarding_uitour.js
@@ -41,31 +41,16 @@ add_task(async function test_clean_up_ui
 
   // Close the overlay by clicking the overlay
   let highlightClosePromise = promisePopupChange(highlight, "closed");
   BrowserTestUtils.synthesizeMouseAtPoint(2, 2, {}, tab.linkedBrowser);
   await promiseOnboardingOverlayClosed(tab.linkedBrowser);
   await highlightClosePromise;
   is(highlight.state, "closed", "Should close UITour highlight after closing the overlay by clicking the overlay");
 
-  // Trigger UITour showHighlight
-  highlightOpenPromise = promisePopupChange(highlight, "open");
-  await triggerUITourHighlight("library", tab);
-  await highlightOpenPromise;
-  is(highlight.state, "open", "Should show UITour highlight");
-  is(highlight.getAttribute("targetName"), "library", "UITour should highlight library");
-
-  // Close the overlay by clicking the overlay
-  // Should not click the close button here since the close button is hovered by appmenu and can't be clicked on win7
-  highlightClosePromise = promisePopupChange(highlight, "closed");
-  BrowserTestUtils.synthesizeMouseAtPoint(2, 2, {}, tab.linkedBrowser);
-  await promiseOnboardingOverlayClosed(tab.linkedBrowser);
-  await highlightClosePromise;
-  is(highlight.state, "closed", "Should close UITour highlight after closing the overlay by clicking the overlay");
-
   // Trigger UITour showHighlight again
   highlightOpenPromise = promisePopupChange(highlight, "open");
   await triggerUITourHighlight("library", tab);
   await highlightOpenPromise;
   is(highlight.state, "open", "Should show UITour highlight");
   is(highlight.getAttribute("targetName"), "library", "UITour should highlight library");
 
   // Close the overlay by clicking the skip-tour button