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

Fixed #34833 -- Made admin's main content render in <main> tag.

This commit is contained in:
Sarah Abderemane
2023-09-14 00:17:50 +02:00
committed by Mariusz Felisiak
parent f92e68c30a
commit 91e617c743
3 changed files with 6 additions and 3 deletions

View File

@@ -42,7 +42,7 @@ class AdminSidebarTests(TestCase):
def test_sidebar_not_on_index(self):
response = self.client.get(reverse("test_with_sidebar:index"))
self.assertContains(response, '<div class="main" id="main">')
self.assertContains(response, '<main class="main" id="main">')
self.assertNotContains(
response, '<nav class="sticky" id="nav-sidebar" aria-label="Sidebar">'
)