mirror of
https://github.com/django/django.git
synced 2025-10-30 17:16:10 +00:00
Fixed #36601 -- Fixed color contrast of FilteredSelectMultiple widget chosen labels in TabularInlines.
Regression in a0f50c2a48.
This commit is contained in:
committed by
Sarah Boyce
parent
606fc35279
commit
1e7728888d
@@ -2558,3 +2558,15 @@ class SeleniumTests(AdminSeleniumTestCase):
|
||||
self.assertTrue(object_str.is_displayed())
|
||||
self.assertIn("Desert", object_str.text)
|
||||
self.take_screenshot("tabular")
|
||||
|
||||
@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")
|
||||
|
||||
Reference in New Issue
Block a user