Bug 1414322 - Update Marionette accessibility tests for non keyboard-interactable elements.
Because with webdriver interactability checks turned on, accessability
checks are done afterward, and like in this case would even never run
due to <h1> is not a keyboard-interactability element, which causes an
ElementNotInteractableException.
As such those obsolete tests can be removed now.
MozReview-Commit-ID: 6pw5TCgMb7l
--- a/testing/marionette/harness/marionette_harness/tests/unit/test_accessibility.py
+++ b/testing/marionette/harness/marionette_harness/tests/unit/test_accessibility.py
@@ -210,26 +210,14 @@ class TestAccessibility(MarionetteTestCa
# No exception should be raised
self.run_element_test(self.disabled_elementIDs, lambda element: element.is_enabled())
def test_send_keys_raises_no_exception(self):
self.setup_accessibility()
# Sending keys to valid input should not raise any exceptions
self.run_element_test(['input1'], lambda element: element.send_keys("a"))
- self.setup_accessibility(False, False)
- # Sending keys to invalid element should not raise any exceptions when raising accessibility
- # exceptions is disabled
- self.run_element_test(['button5'], lambda element: element.send_keys("abc"))
-
- def test_send_keys_raises_element_not_accessible(self):
- self.setup_accessibility()
- # Sending keys to invalid element should raise an exception
- self.run_element_test(['button5'],
- lambda element: self.assertRaises(ElementNotAccessibleException,
- element.send_keys))
-
def test_is_selected_raises_no_exception(self):
self.setup_accessibility()
# No exception should be raised for valid options
self.run_element_test(self.valid_option_elementIDs, lambda element: element.is_selected())
# No exception should be raised for non-selectable elements
self.run_element_test(self.valid_elementIDs, lambda element: element.is_selected())