summaryrefslogtreecommitdiff
path: root/tests/admin_changelist
diff options
context:
space:
mode:
authorantoliny0919 <antoliny0919@gmail.com>2025-04-13 15:13:20 +0900
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-05-14 16:03:01 +0200
commit8bc3dd87276a624be3bb47221034b3fc84668469 (patch)
treef876d8b77690a14ae26efff32b6fc7a5e95fa623 /tests/admin_changelist
parent8638d8bf74c1a58302c97d4436ad2eb08438145b (diff)
Fixed #35507 -- Improved accessibility of search and filter elements in the admin changelist.
Diffstat (limited to 'tests/admin_changelist')
-rw-r--r--tests/admin_changelist/tests.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/admin_changelist/tests.py b/tests/admin_changelist/tests.py
index 6003ce47d8..7203daa6b0 100644
--- a/tests/admin_changelist/tests.py
+++ b/tests/admin_changelist/tests.py
@@ -1745,7 +1745,12 @@ class ChangeListTests(TestCase):
response = m.changelist_view(request)
self.assertContains(
response,
- '<form id="changelist-search" method="get" role="search">',
+ '<h2 id="changelist-search-form" class="visually-hidden">Search bands</h2>',
+ )
+ self.assertContains(
+ response,
+ '<form id="changelist-search" method="get" role="search" '
+ 'aria-labelledby="changelist-search-form">',
)
def test_search_bar_total_link_preserves_options(self):