diff options
| author | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-04-16 09:28:34 +0200 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-05-02 13:18:58 +0200 |
| commit | 39828fa7786a805f7a542abb929f352d3c5b722c (patch) | |
| tree | c9518ad22bb7f7cb004f5adad66fd3ada712aef5 /tests/admin_views/tests.py | |
| parent | 914bf6917157923783ad2ea4c8a60115738a203c (diff) | |
Added a high contrast mode to screenshot cases.
Thank you to Sarah Abderemane and Nick Pope for the reviews.
Diffstat (limited to 'tests/admin_views/tests.py')
| -rw-r--r-- | tests/admin_views/tests.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py index 5877abf781..5e300de8bc 100644 --- a/tests/admin_views/tests.py +++ b/tests/admin_views/tests.py @@ -5764,7 +5764,7 @@ class SeleniumTests(AdminSeleniumTestCase): title="A Long Title", published=True, slug="a-long-title" ) - @screenshot_cases(["desktop_size", "mobile_size", "rtl", "dark"]) + @screenshot_cases(["desktop_size", "mobile_size", "rtl", "dark", "high_contrast"]) def test_login_button_centered(self): from selenium.webdriver.common.by import By @@ -6070,7 +6070,7 @@ class SeleniumTests(AdminSeleniumTestCase): self.assertEqual(slug1, "this-is-the-main-name-the-best-2012-02-18") self.assertEqual(slug2, "option-two-this-is-the-main-name-the-best") - @screenshot_cases(["desktop_size", "mobile_size", "dark"]) + @screenshot_cases(["desktop_size", "mobile_size", "dark", "high_contrast"]) def test_collapsible_fieldset(self): """ The 'collapse' class in fieldsets definition allows to @@ -6093,7 +6093,7 @@ class SeleniumTests(AdminSeleniumTestCase): ) self.take_screenshot("expanded") - @screenshot_cases(["desktop_size", "mobile_size", "rtl", "dark"]) + @screenshot_cases(["desktop_size", "mobile_size", "rtl", "dark", "high_contrast"]) def test_selectbox_height_collapsible_fieldset(self): from selenium.webdriver.common.by import By @@ -6121,7 +6121,7 @@ class SeleniumTests(AdminSeleniumTestCase): ) self.take_screenshot("selectbox-collapsible") - @screenshot_cases(["desktop_size", "mobile_size", "rtl", "dark"]) + @screenshot_cases(["desktop_size", "mobile_size", "rtl", "dark", "high_contrast"]) def test_selectbox_height_not_collapsible_fieldset(self): from selenium.webdriver.common.by import By @@ -6152,7 +6152,7 @@ class SeleniumTests(AdminSeleniumTestCase): ) self.take_screenshot("selectbox-non-collapsible") - @screenshot_cases(["desktop_size", "mobile_size", "rtl", "dark"]) + @screenshot_cases(["desktop_size", "mobile_size", "rtl", "dark", "high_contrast"]) def test_first_field_focus(self): """JavaScript-assisted auto-focus on first usable form field.""" from selenium.webdriver.common.by import By |
