summaryrefslogtreecommitdiff
path: root/tests/admin_widgets/tests.py
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 13:56:00 -0500
commit5081adcb9004f2c726dcfd054f7f16c5fd39d391 (patch)
tree2c2fe9d8ce916999f71d343a063d886579042dfa /tests/admin_widgets/tests.py
parentc70c5f04a41b7cb093e693f0ea226486fae27d22 (diff)
downloaddjango-5081adcb9004f2c726dcfd054f7f16c5fd39d391.tar.gz
Fixed #25729 -- Fixed flaky admin_widgets selenium test: test_ForeignKey_using_to_field
Diffstat (limited to 'tests/admin_widgets/tests.py')
-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 46f2d2a76e..ce1ef0eb7d 100644
--- a/tests/admin_widgets/tests.py
+++ b/tests/admin_widgets/tests.py
@@ -1256,6 +1256,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')
@@ -1274,6 +1275,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()