mirror of
https://github.com/django/django.git
synced 2025-11-23 12:26:57 +00:00
Fixed #36601 -- Fixed color contrast of FilteredSelectMultiple widget chosen labels in TabularInlines.
Regression in a0f50c2a48.
This commit is contained in:
parent
606fc35279
commit
1e7728888d
3 changed files with 17 additions and 3 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue