diff options
author | David Smith <39445562+smithdc1@users.noreply.github.com> | 2021-02-19 06:15:54 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-19 07:15:54 +0100 |
commit | 96a50934007f4a9a14c76a08be5bbd3800b4b66c (patch) | |
tree | aab9b114207ead46bb2347443b54714ff758fc78 /tests/admin_inlines | |
parent | f2bef2b7bc6c817af0f5fa77e1052a1f5ce12f71 (diff) | |
download | django-96a50934007f4a9a14c76a08be5bbd3800b4b66c.tar.gz |
Refs #30231 -- Fixed SeleniumTests.test_inlines_verbose_name with headless mode.
Horizontal scrollbar doesn't appear with the headless mode on small
windows, that's why window.scrollTo() is not an option for these tests
even after fixing #32459.
Diffstat (limited to 'tests/admin_inlines')
-rw-r--r-- | tests/admin_inlines/tests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/admin_inlines/tests.py b/tests/admin_inlines/tests.py index 8286f10906..07f39c0e85 100644 --- a/tests/admin_inlines/tests.py +++ b/tests/admin_inlines/tests.py @@ -1363,6 +1363,10 @@ class SeleniumTests(AdminSeleniumTestCase): verbose_name in the inline form. """ self.admin_login(username='super', password='secret') + # Hide sidebar. + self.selenium.get(self.live_server_url + reverse('admin:admin_inlines_course_add')) + toggle_button = self.selenium.find_element_by_css_selector('#toggle-nav-sidebar') + toggle_button.click() # Each combination of horizontal/vertical fiter with stacked/tabular # inlines. tests = [ |