mirror of
https://github.com/django/django.git
synced 2025-03-13 10:50:55 +00:00
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.
This commit is contained in:
parent
f2bef2b7bc
commit
96a5093400
@ -1363,6 +1363,10 @@ class SeleniumTests(AdminSeleniumTestCase):
|
|||||||
verbose_name in the inline form.
|
verbose_name in the inline form.
|
||||||
"""
|
"""
|
||||||
self.admin_login(username='super', password='secret')
|
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
|
# Each combination of horizontal/vertical fiter with stacked/tabular
|
||||||
# inlines.
|
# inlines.
|
||||||
tests = [
|
tests = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user