diff options
| author | Howard Cox <dev.anubis@gmail.com> | 2023-06-02 11:54:07 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-06-05 11:55:06 +0200 |
| commit | cd413bd78ac65bd4282d26cc279bfd1bd4de707d (patch) | |
| tree | 8e492aaafc8a5c341eec3d9e40e72bdf26c7cb38 /tests/admin_docs/test_views.py | |
| parent | 89c27d867252d7c81be3de7184578db1934a9318 (diff) | |
Fixed #34621 -- Made admin site header render in <div> tag.
This was problematic for screen reader users because they use headings
to navigate. Having two <h1> is confusing, and the one in the header
wasn’t particularly helpful since it’s the same on all pages.
Diffstat (limited to 'tests/admin_docs/test_views.py')
| -rw-r--r-- | tests/admin_docs/test_views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/admin_docs/test_views.py b/tests/admin_docs/test_views.py index 4fe51f3d02..7969f6cd42 100644 --- a/tests/admin_docs/test_views.py +++ b/tests/admin_docs/test_views.py @@ -27,7 +27,7 @@ class AdminDocViewTests(TestDataMixin, AdminDocsTestCase): self.assertContains(response, "<h1>Documentation</h1>", html=True) self.assertContains( response, - '<h1 id="site-name"><a href="/admin/">Django administration</a></h1>', + '<div id="site-name"><a href="/admin/">Django administration</a></div>', ) self.client.logout() response = self.client.get(reverse("django-admindocs-docroot"), follow=True) @@ -153,7 +153,7 @@ class AdminDocViewTests(TestDataMixin, AdminDocsTestCase): ) self.assertContains( response, - '<h1 id="site-name"><a href="/admin/">Django administration</a></h1>', + '<div id="site-name"><a href="/admin/">Django administration</a></div>', ) finally: utils.docutils_is_available = True |
