Refs #31901 -- Fixed SeleniumTests.test_list_editable_popups with headless mode.

This commit is contained in:
Mariusz Felisiak 2020-09-02 15:16:03 +02:00 committed by GitHub
parent 2d42e23b6d
commit 6a881197e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -4739,6 +4739,9 @@ class SeleniumTests(AdminSeleniumTestCase):
name_input.send_keys('<i>edited section</i>') name_input.send_keys('<i>edited section</i>')
self.selenium.find_element_by_xpath('//input[@value="Save"]').click() self.selenium.find_element_by_xpath('//input[@value="Save"]').click()
self.selenium.switch_to.window(self.selenium.window_handles[0]) 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')) select = Select(self.selenium.find_element_by_id('id_form-0-section'))
self.assertEqual(select.first_selected_option.text, '<i>edited section</i>') self.assertEqual(select.first_selected_option.text, '<i>edited section</i>')
# Rendered select2 input. # Rendered select2 input.