[1.9.x] Fixed #25729 -- Fixed flaky admin_widgets selenium test: test_ForeignKey_using_to_field
Backport of 5081adcb90
from master
This commit is contained in:
parent
d162b0bcd8
commit
dac48234d3
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue