summaryrefslogtreecommitdiff
path: root/tests/admin_inlines
diff options
context:
space:
mode:
authorantoliny0919 <antoliny0919@gmail.com>2025-09-10 04:27:50 +0200
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-09-17 10:01:37 +0200
commitd8e9dec1ada659755595e2d90a3492f8f805f394 (patch)
tree3f9632e9602d23650d4aabb6ed9993384e696a22 /tests/admin_inlines
parent1dbf415a1829a0bacd8cb31a8da5f2a99c5ea465 (diff)
[5.2.x] Fixed #36601 -- Fixed color contrast of FilteredSelectMultiple widget chosen labels in TabularInlines.
Regression in a0f50c2a483678d31bd1ad6f08fd3a0b8399e27b. Backport of 1e7728888dbbff437ad9847c82b84feb81f785df from main.
Diffstat (limited to 'tests/admin_inlines')
-rw-r--r--tests/admin_inlines/tests.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/admin_inlines/tests.py b/tests/admin_inlines/tests.py
index 89f43300d7..07c4f11baa 100644
--- a/tests/admin_inlines/tests.py
+++ b/tests/admin_inlines/tests.py
@@ -2525,3 +2525,15 @@ class SeleniumTests(AdminSeleniumTestCase):
delete.get_attribute("innerHTML"),
)
self.take_screenshot("loaded")
+
+ @screenshot_cases(["desktop_size", "mobile_size", "rtl", "dark", "high_contrast"])
+ def test_tabular_inline_with_filter_horizontal(self):
+ from selenium.webdriver.common.by import By
+
+ self.admin_login(username="super", password="secret")
+ self.selenium.get(
+ self.live_server_url + reverse("admin:admin_inlines_courseproxy2_add")
+ )
+ m2m_widget = self.selenium.find_element(By.CSS_SELECTOR, "div.selector")
+ self.assertTrue(m2m_widget.is_displayed())
+ self.take_screenshot("tabular")