mirror of
https://github.com/django/django.git
synced 2025-06-01 09:39:12 +00:00
Fixed #29892 -- Added .wait_page_loaded() in SeleniumTests.test_first_field_focus().
This commit is contained in:
parent
f0ed38edf3
commit
875e3ff4fd
@ -4680,6 +4680,7 @@ class SeleniumTests(AdminSeleniumTestCase):
|
|||||||
"""JavaScript-assisted auto-focus on first usable form field."""
|
"""JavaScript-assisted auto-focus on first usable form field."""
|
||||||
# First form field has a single widget
|
# First form field has a single widget
|
||||||
self.admin_login(username='super', password='secret', login_url=reverse('admin:index'))
|
self.admin_login(username='super', password='secret', login_url=reverse('admin:index'))
|
||||||
|
with self.wait_page_loaded():
|
||||||
self.selenium.get(self.live_server_url + reverse('admin:admin_views_picture_add'))
|
self.selenium.get(self.live_server_url + reverse('admin:admin_views_picture_add'))
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
self.selenium.switch_to.active_element,
|
self.selenium.switch_to.active_element,
|
||||||
@ -4687,6 +4688,7 @@ class SeleniumTests(AdminSeleniumTestCase):
|
|||||||
)
|
)
|
||||||
|
|
||||||
# First form field has a MultiWidget
|
# First form field has a MultiWidget
|
||||||
|
with self.wait_page_loaded():
|
||||||
self.selenium.get(self.live_server_url + reverse('admin:admin_views_reservation_add'))
|
self.selenium.get(self.live_server_url + reverse('admin:admin_views_reservation_add'))
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
self.selenium.switch_to.active_element,
|
self.selenium.switch_to.active_element,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user