diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py index e2c4605a20..7c4474d3dc 100644 --- a/tests/admin_views/tests.py +++ b/tests/admin_views/tests.py @@ -4739,6 +4739,9 @@ class SeleniumTests(AdminSeleniumTestCase): name_input.send_keys('edited section') 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, 'edited section') # Rendered select2 input.