mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
Fixed broken selenium tests after 42b9a23267
.
This commit is contained in:
parent
d54baf6970
commit
8fc8c958a5
@ -4772,7 +4772,7 @@ class SeleniumTests(AdminSeleniumTestCase):
|
||||
self.selenium.find_element_by_id('delete_id_parent').click()
|
||||
self.wait_for_popup()
|
||||
self.selenium.switch_to.window(self.selenium.window_handles[-1])
|
||||
self.selenium.find_element_by_xpath('//input[@value="Yes, I\'m sure"]').click()
|
||||
self.selenium.find_element_by_xpath('//input[@value="Yes, I’m sure"]').click()
|
||||
self.selenium.switch_to.window(self.selenium.window_handles[0])
|
||||
select = Select(self.selenium.find_element_by_id('id_parent'))
|
||||
self.assertEqual(ParentWithUUIDPK.objects.count(), 0)
|
||||
|
@ -1393,7 +1393,7 @@ class RelatedFieldWidgetSeleniumTests(AdminWidgetSeleniumTestCase):
|
||||
|
||||
# Go ahead and submit the form to make sure it works
|
||||
self.selenium.find_element_by_css_selector(save_button_css_selector).click()
|
||||
self.wait_for_text('li.success', 'The profile "changednewuser" was added successfully.')
|
||||
self.wait_for_text('li.success', 'The profile “changednewuser” was added successfully.')
|
||||
profiles = Profile.objects.all()
|
||||
self.assertEqual(len(profiles), 1)
|
||||
self.assertEqual(profiles[0].user.username, username_value)
|
||||
|
Loading…
Reference in New Issue
Block a user