[3.1.x] Refs #31901 -- Fixed SeleniumTests.test_list_editable_popups with headless mode.
Backport of 6a881197e9
from master
This commit is contained in:
parent
c69c6886de
commit
17d5b16dbf
|
@ -4716,6 +4716,9 @@ class SeleniumTests(AdminSeleniumTestCase):
|
|||
name_input.send_keys('<i>edited section</i>')
|
||||
self.selenium.find_element_by_xpath('//input[@value="Save"]').click()
|
||||
self.selenium.switch_to.window(self.selenium.window_handles[0])
|
||||
# Hide sidebar.
|
||||
toggle_button = self.selenium.find_element_by_css_selector('#toggle-nav-sidebar')
|
||||
toggle_button.click()
|
||||
select = Select(self.selenium.find_element_by_id('id_form-0-section'))
|
||||
self.assertEqual(select.first_selected_option.text, '<i>edited section</i>')
|
||||
# Rendered select2 input.
|
||||
|
|
Loading…
Reference in New Issue