From 3f8b9056c0da53858bd365e55f99ebc8af7c966e Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 23 Dec 2015 13:56:00 -0500 Subject: [PATCH] [1.8.x] Fixed #25729 -- Fixed flaky admin_widgets selenium test: test_ForeignKey_using_to_field Backport of 5081adcb9004f2c726dcfd054f7f16c5fd39d391 from master --- tests/admin_widgets/tests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/admin_widgets/tests.py b/tests/admin_widgets/tests.py index dd24b17e87..4ef9def060 100644 --- a/tests/admin_widgets/tests.py +++ b/tests/admin_widgets/tests.py @@ -1176,6 +1176,7 @@ class RelatedFieldWidgetSeleniumFirefoxTests(AdminSeleniumWebDriverTestCase): self.selenium.find_element_by_id('add_id_user').click() self.wait_for_popup() self.selenium.switch_to.window('id_user') + self.wait_for('#id_password') password_field = self.selenium.find_element_by_id('id_password') password_field.send_keys('password') @@ -1194,6 +1195,7 @@ class RelatedFieldWidgetSeleniumFirefoxTests(AdminSeleniumWebDriverTestCase): self.wait_for_popup() self.selenium.switch_to.window('id_user') + self.wait_for('#id_username') username_field = self.selenium.find_element_by_id('id_username') username_value = 'changednewuser' username_field.clear()