mirror of
https://github.com/django/django.git
synced 2025-04-01 03:56:42 +00:00
Fixed flaky test_ForeignKey_using_to_field test.
This commit is contained in:
parent
83cdcac355
commit
1d6948096f
@ -1735,7 +1735,12 @@ class RelatedFieldWidgetSeleniumTests(AdminWidgetSeleniumTestCase):
|
|||||||
self.wait_for_value("#id_username", "newuser")
|
self.wait_for_value("#id_username", "newuser")
|
||||||
self.selenium.back()
|
self.selenium.back()
|
||||||
|
|
||||||
|
# Chrome and Safari don't update related object links when selecting
|
||||||
|
# the same option as previously submitted. As a consequence, the
|
||||||
|
# "pencil" and "eye" buttons remain disable, so select "---------"
|
||||||
|
# first.
|
||||||
select = Select(self.selenium.find_element(By.ID, "id_user"))
|
select = Select(self.selenium.find_element(By.ID, "id_user"))
|
||||||
|
select.select_by_index(0)
|
||||||
select.select_by_value("newuser")
|
select.select_by_value("newuser")
|
||||||
# Click the Change User button to change it
|
# Click the Change User button to change it
|
||||||
self.selenium.find_element(By.ID, "change_id_user").click()
|
self.selenium.find_element(By.ID, "change_id_user").click()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user