From 6e891a17220ed19ee41a18c80a5bb76cfd4e926a Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Wed, 28 Sep 2022 11:27:11 +0200 Subject: [PATCH] Removed obsolete test_skip_link_is_skipped_when_there_is_searchbar test. searchbar doesn't have autofocus since d938b3b2577807ffd585f654caa0f37d9574e565. --- .../admin_views/test_skip_link_to_content.py | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/tests/admin_views/test_skip_link_to_content.py b/tests/admin_views/test_skip_link_to_content.py index 9f3287147e..80cf6e5357 100644 --- a/tests/admin_views/test_skip_link_to_content.py +++ b/tests/admin_views/test_skip_link_to_content.py @@ -96,27 +96,6 @@ class SeleniumTests(AdminSeleniumTestCase): self.selenium.switch_to.active_element, django_administration_title ) - def test_skip_link_is_skipped_when_there_is_searchbar(self): - from selenium.webdriver.common.by import By - - self.admin_login( - username="super", - password="secret", - login_url=reverse("admin:index"), - ) - - group_a_tag = self.selenium.find_element(By.LINK_TEXT, "Groups") - with self.wait_page_loaded(): - group_a_tag.click() - - # `Skip link` is not present. - skip_link = self.selenium.find_element(By.CLASS_NAME, "skip-to-content-link") - self.assertFalse(skip_link.is_displayed()) - - # `Searchbar` has autofocus. - searchbar = self.selenium.find_element(By.ID, "searchbar") - self.assertEqual(self.selenium.switch_to.active_element, searchbar) - def test_skip_link_with_RTL_language_doesnt_create_horizontal_scrolling(self): from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys