summaryrefslogtreecommitdiff
path: root/tests/admin_views/tests.py
diff options
context:
space:
mode:
authorantoliny0919 <antoliny0919@gmail.com>2025-04-17 19:38:26 +0900
committernessita <124304+nessita@users.noreply.github.com>2025-04-22 22:13:38 -0300
commit1bc805e23b73a580b82a1d416ab0fb59a1073047 (patch)
tree17a61b519bbf6f595a8192b3c1c2d7ad7cc45483 /tests/admin_views/tests.py
parent1831f7733d3ef03d1ca7fac3e8d9f4c5e3e3375e (diff)
Fixed #36331 -- Reverted "Fixed #36055 -- Prevented overlap of object-tools buttons and page header in the admin."
This reverts commits b1324a680add78de24c763911d0eefa19b9263bc and 02a5cbfe76382da2a0414df17017185be5bd47f9. The former caused a regression in admin sites that relied on the `object-tools` block being inside the `content` block. Thank you to Fabian Braun for the report.
Diffstat (limited to 'tests/admin_views/tests.py')
-rw-r--r--tests/admin_views/tests.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py
index 637f258ec0..ea83b6881f 100644
--- a/tests/admin_views/tests.py
+++ b/tests/admin_views/tests.py
@@ -125,7 +125,6 @@ from .models import (
Song,
State,
Story,
- Subscriber,
SuperSecretHideout,
SuperVillain,
Telegram,
@@ -6870,24 +6869,6 @@ class SeleniumTests(AdminSeleniumTestCase):
name_input_value = name_input.get_attribute("value")
self.assertEqual(name_input_value, "Test section 1")
- @screenshot_cases(["desktop_size", "mobile_size", "rtl", "dark", "high_contrast"])
- def test_long_object_str_on_change_view(self):
- from selenium.webdriver.common.by import By
-
- self.admin_login(
- username="super", password="secret", login_url=reverse("admin:index")
- )
- s = Subscriber.objects.create(name="a " * 40, email="b " * 80)
- self.selenium.get(
- self.live_server_url
- + reverse("admin:admin_views_subscriber_change", args=(s.pk,))
- )
- object_tools = self.selenium.find_elements(
- By.CSS_SELECTOR, "div#content ul.object-tools li"
- )
- self.assertGreater(len(object_tools), 0)
- self.take_screenshot("not-overwrap")
-
@override_settings(ROOT_URLCONF="admin_views.urls")
class ReadonlyTest(AdminFieldExtractionMixin, TestCase):