summaryrefslogtreecommitdiff
path: root/tests/admin_views/tests.py
diff options
context:
space:
mode:
authorSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-07-16 12:20:41 +0200
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-07-18 17:29:12 +0200
commit6aa05fd23205fce523924e307f78ce8d614af7f1 (patch)
tree196a62c2e5375d6d79c74b216eef8d2fa814ad2c /tests/admin_views/tests.py
parente767bd6838d40893b001c1ad6ba2ab9293527532 (diff)
Triggered window resize to fix layout issues.
Diffstat (limited to 'tests/admin_views/tests.py')
-rw-r--r--tests/admin_views/tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py
index 2029909df9..ba322bd344 100644
--- a/tests/admin_views/tests.py
+++ b/tests/admin_views/tests.py
@@ -6204,6 +6204,7 @@ class SeleniumTests(AdminSeleniumTestCase):
user = User.objects.create_user(username="new", password="newuser")
url = self.live_server_url + reverse("admin:auth_user_change", args=[user.id])
self.selenium.get(url)
+ self.trigger_resize()
# Scroll to the User permissions section.
user_permissions = self.selenium.find_element(
@@ -6243,9 +6244,8 @@ class SeleniumTests(AdminSeleniumTestCase):
).perform()
# Move focus to other element.
- self.selenium.find_element(
- By.CSS_SELECTOR, "#id_user_permissions_selected_input"
- ).click()
+ body = self.selenium.find_element(By.TAG_NAME, "body")
+ body.send_keys(Keys.TAB)
self.take_screenshot("selectbox-chosen-perms-some-selected")
@screenshot_cases(["desktop_size", "mobile_size", "rtl", "dark", "high_contrast"])