summaryrefslogtreecommitdiff
path: root/tests/admin_views/tests.py
diff options
context:
space:
mode:
authorCheuk Ting Ho <cheukting.ho@gmail.com>2023-06-01 13:37:25 +0100
committerGitHub <noreply@github.com>2023-06-01 13:37:25 +0100
commit65da6b2ae48f346d30c0322733e347f2fd359645 (patch)
tree83f303948151b159c243a23787389fc6d57167fa /tests/admin_views/tests.py
parent4037223d0f12c44ecd6f369ccbabcbd279a1bdbc (diff)
Fixed #34617 -- Enabled user zooming on mobile devices in the admin.
Diffstat (limited to 'tests/admin_views/tests.py')
-rw-r--r--tests/admin_views/tests.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py
index 0a252bac4f..4db06ca84a 100644
--- a/tests/admin_views/tests.py
+++ b/tests/admin_views/tests.py
@@ -1505,6 +1505,13 @@ class AdminViewBasicTest(AdminViewBasicTestCase):
response, '<div class="help" id="id_new_password1_helptext">'
)
+ def test_enable_zooming_on_mobile(self):
+ response = self.client.get(reverse("admin:index"))
+ self.assertContains(
+ response,
+ '<meta name="viewport" content="width=device-width, initial-scale=1.0">',
+ )
+
@override_settings(
AUTH_PASSWORD_VALIDATORS=[