1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #35686 -- Added table headers to app list tables for screen readers.

This commit is contained in:
Sarah Boyce
2024-08-17 18:32:40 +02:00
parent 231c0d8593
commit d9ae7f5b58
3 changed files with 30 additions and 3 deletions

View File

@@ -1608,7 +1608,7 @@ class ChangeListTests(TestCase):
response = m.changelist_view(request)
self.assertIn('<ul class="object-tools">', response.rendered_content)
# The "Add" button inside the object-tools shouldn't appear.
self.assertNotIn("Add ", response.rendered_content)
self.assertNotIn("Add event", response.rendered_content)
def test_search_help_text(self):
superuser = self._create_superuser("superuser")