Bug 1413821 - Skip final assertion in test_inclusive_descendant for Android. a=test-only FIREFOX_57b_RELBRANCH
authorHenrik Skupin <mail@hskupin.info>
Thu, 02 Nov 2017 08:43:26 +0100
branchFIREFOX_57b_RELBRANCH
changeset 440587 6cf9fe9ff66d8e2188ad384d617585560412a5bb
parent 440586 4cab93886f10fc1a5e65bbbd60d5dbbe9aa4a9ca
child 440588 8c3926699de4b2f03f13a93d3750deb445b64396
push id8116
push userryanvm@gmail.com
push dateThu, 02 Nov 2017 18:11:27 +0000
treeherdermozilla-beta@8c3926699de4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstest-only
bugs1413821
milestone57.0
Bug 1413821 - Skip final assertion in test_inclusive_descendant for Android. a=test-only MozReview-Commit-ID: 7fadvwbofPb
testing/marionette/harness/marionette_harness/tests/unit/test_click.py
--- a/testing/marionette/harness/marionette_harness/tests/unit/test_click.py
+++ b/testing/marionette/harness/marionette_harness/tests/unit/test_click.py
@@ -135,17 +135,20 @@ class TestLegacyClick(MarionetteTestCase
         # This tests that the pointer-interactability test does not
         # cause an ElementClickInterceptedException.
         #
         # At a <select multiple>'s in-view centre point, you might
         # find a fully rendered <option>.  Marionette should test that
         # the paint tree at this point _contains_ <option>, not that the
         # first element of the paint tree is _equal_ to <select>.
         select.click()
-        self.assertNotEqual(select.get_property("selectedIndex"), -1)
+
+        # Bug 1413821 - Click does not select an option on Android
+        if self.marionette.session_capabilities["browserName"] != "fennec":
+            self.assertNotEqual(select.get_property("selectedIndex"), -1)
 
     def test_container_is_select(self):
         self.marionette.navigate(inline("""
             <select>
               <option>foo</option>
             </select>"""))
         option = self.marionette.find_element(By.TAG_NAME, "option")
         option.click()