summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2022-09-28 11:27:11 +0200
committerGitHub <noreply@github.com>2022-09-28 11:27:11 +0200
commit6e891a17220ed19ee41a18c80a5bb76cfd4e926a (patch)
treefad88ac0600b3956effe511e8e8f5fce1023c941
parent80d38de52bb2721a7b44fce4057bcff571afc23a (diff)
Removed obsolete test_skip_link_is_skipped_when_there_is_searchbar test.
searchbar doesn't have autofocus since d938b3b2577807ffd585f654caa0f37d9574e565.
-rw-r--r--tests/admin_views/test_skip_link_to_content.py21
1 files changed, 0 insertions, 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