mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #34628 -- Improved icons accessibility of related widget wrapper in admin.
This improves accessibility of icons by making them larger and grayscale (when not selected).
This commit is contained in:
committed by
Mariusz Felisiak
parent
e042024b28
commit
1699f8b52a
@@ -16,7 +16,7 @@ class SeleniumTests(AdminSeleniumTestCase):
|
||||
username="super", password="secret", login_url=reverse("admin:index")
|
||||
)
|
||||
|
||||
def test_related_object_link_images_empty_alt(self):
|
||||
def test_related_object_link_images_attributes(self):
|
||||
from selenium.webdriver.common.by import By
|
||||
|
||||
album_add_url = reverse("admin:admin_views_album_add")
|
||||
@@ -34,6 +34,8 @@ class SeleniumTests(AdminSeleniumTestCase):
|
||||
By.XPATH, f'//*[@id="{link_id}"]/img'
|
||||
)
|
||||
self.assertEqual(link_image.get_attribute("alt"), "")
|
||||
self.assertEqual(link_image.get_attribute("width"), "20")
|
||||
self.assertEqual(link_image.get_attribute("height"), "20")
|
||||
|
||||
def test_related_object_lookup_link_initial_state(self):
|
||||
from selenium.webdriver.common.by import By
|
||||
|
||||
Reference in New Issue
Block a user