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.selenium.find_element_by_id('delete_id_parent').click()
|
||||||
self.wait_for_popup()
|
self.wait_for_popup()
|
||||||
self.selenium.switch_to.window(self.selenium.window_handles[-1])
|
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])
|
self.selenium.switch_to.window(self.selenium.window_handles[0])
|
||||||
select = Select(self.selenium.find_element_by_id('id_parent'))
|
select = Select(self.selenium.find_element_by_id('id_parent'))
|
||||||
self.assertEqual(ParentWithUUIDPK.objects.count(), 0)
|
self.assertEqual(ParentWithUUIDPK.objects.count(), 0)
|
||||||
|
|
|
@ -1393,7 +1393,7 @@ class RelatedFieldWidgetSeleniumTests(AdminWidgetSeleniumTestCase):
|
||||||
|
|
||||||
# Go ahead and submit the form to make sure it works
|
# Go ahead and submit the form to make sure it works
|
||||||
self.selenium.find_element_by_css_selector(save_button_css_selector).click()
|
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()
|
profiles = Profile.objects.all()
|
||||||
self.assertEqual(len(profiles), 1)
|
self.assertEqual(len(profiles), 1)
|
||||||
self.assertEqual(profiles[0].user.username, username_value)
|
self.assertEqual(profiles[0].user.username, username_value)
|
||||||
|
|
Loading…
Reference in New Issue