Fixed #24101 -- Fixed flaky admin_views selenium tests; refs #7361.

This commit is contained in:
Tim Graham 2015-01-08 12:20:56 -05:00
parent 5c43fd4825
commit b8abfe141b
1 changed files with 2 additions and 0 deletions

View File

@ -3850,6 +3850,7 @@ class SeleniumAdminViewsFirefoxTests(AdminSeleniumWebDriverTestCase):
self.selenium.get(full_url)
self.selenium.find_element_by_class_name('deletelink').click()
self.selenium.find_element_by_class_name('cancel-link').click()
self.wait_page_loaded()
self.assertEqual(self.selenium.current_url, full_url)
self.assertEqual(Pizza.objects.count(), 1)
@ -3868,6 +3869,7 @@ class SeleniumAdminViewsFirefoxTests(AdminSeleniumWebDriverTestCase):
self.selenium.get(full_url)
self.selenium.find_element_by_class_name('deletelink').click()
self.selenium.find_element_by_class_name('cancel-link').click()
self.wait_page_loaded()
self.assertEqual(self.selenium.current_url, full_url)
self.assertEqual(Pizza.objects.count(), 1)
self.assertEqual(Topping.objects.count(), 2)