From 85be4e767974a059485cdda51b9bf4aae74b6f5c Mon Sep 17 00:00:00 2001 From: Ting-Yu Lin Date: Tue, 27 Jun 2023 22:11:34 +0000 Subject: [PATCH] Bug 1839775 - Remove accessbility tests using HTMLElement.tap(). r=webdriver-reviewers,whimboo These unit tests verify HTMLElement.tap() with accessibility checks. Since tap() is going to be removed in bug 1792529, we can remove these tests as well. Note that HTMLElement.click() is similar to tap(), and is still covered in the file. Differential Revision: https://phabricator.services.mozilla.com/D182089 --- .../tests/unit/test_accessibility.py | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/testing/marionette/harness/marionette_harness/tests/unit/test_accessibility.py b/testing/marionette/harness/marionette_harness/tests/unit/test_accessibility.py index 8d461e5390a7..112a6974d147 100644 --- a/testing/marionette/harness/marionette_harness/tests/unit/test_accessibility.py +++ b/testing/marionette/harness/marionette_harness/tests/unit/test_accessibility.py @@ -118,36 +118,6 @@ class TestAccessibility(MarionetteTestCase): test_accessibility = self.marionette.absolute_url("test_accessibility.html") self.marionette.navigate(test_accessibility) - def test_valid_single_tap(self): - self.setup_accessibility() - # No exception should be raised - self.run_element_test(self.valid_elementIDs, lambda button: button.tap()) - - def test_single_tap_raises_element_not_accessible(self): - self.setup_accessibility() - self.run_element_test( - self.invalid_elementIDs, - lambda button: self.assertRaises(ElementNotAccessibleException, button.tap), - ) - self.run_element_test( - self.falsy_elements, - lambda button: self.assertRaises( - ElementNotInteractableException, button.tap - ), - ) - - def test_single_tap_raises_no_exceptions(self): - self.setup_accessibility(False, True) - # No exception should be raised - self.run_element_test(self.invalid_elementIDs, lambda button: button.tap()) - # Elements are invisible - self.run_element_test( - self.falsy_elements, - lambda button: self.assertRaises( - ElementNotInteractableException, button.tap - ), - ) - def test_valid_click(self): self.setup_accessibility() # No exception should be raised