summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-12-23 13:56:00 -0500
committerTim Graham <timograham@gmail.com>2015-12-23 14:02:07 -0500
commitdac48234d3bd28a4c4a0f78830d77bddad471cfd (patch)
tree0f64153af2b3fe1f3768627505d36ec4d630ec23
parentd162b0bcd8367cc2ddf1ccd613a80a2e82c3b262 (diff)
[1.9.x] Fixed #25729 -- Fixed flaky admin_widgets selenium test: test_ForeignKey_using_to_field
Backport of 5081adcb9004f2c726dcfd054f7f16c5fd39d391 from master
-rw-r--r--tests/admin_widgets/tests.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/admin_widgets/tests.py b/tests/admin_widgets/tests.py
index 98093683b6..1d44de460f 100644
--- a/tests/admin_widgets/tests.py
+++ b/tests/admin_widgets/tests.py
@@ -1260,6 +1260,7 @@ class RelatedFieldWidgetSeleniumFirefoxTests(SeleniumDataMixin, AdminSeleniumWeb
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')
@@ -1278,6 +1279,7 @@ class RelatedFieldWidgetSeleniumFirefoxTests(SeleniumDataMixin, AdminSeleniumWeb
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()