Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed some intermittent Selenium test failures.

  • Loading branch information...
commit f067887a4f1e8b12cec8e5e585cf25fce99c6709 1 parent 0b071ba
@jphalip jphalip authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 tests/admin_widgets/tests.py
View
4 tests/admin_widgets/tests.py
@@ -847,6 +847,7 @@ def test_foreignkey(self):
# Open the popup window and click on a band
self.selenium.find_element_by_id('lookup_id_main_band').click()
self.selenium.switch_to_window('id_main_band')
+ self.wait_page_loaded()
link = self.selenium.find_element_by_link_text('Bogey Blues')
self.assertTrue('/band/42/' in link.get_attribute('href'))
link.click()
@@ -860,6 +861,7 @@ def test_foreignkey(self):
# Reopen the popup window and click on another band
self.selenium.find_element_by_id('lookup_id_main_band').click()
self.selenium.switch_to_window('id_main_band')
+ self.wait_page_loaded()
link = self.selenium.find_element_by_link_text('Green Potatoes')
self.assertTrue('/band/98/' in link.get_attribute('href'))
link.click()
@@ -884,6 +886,7 @@ def test_many_to_many(self):
# Open the popup window and click on a band
self.selenium.find_element_by_id('lookup_id_supporting_bands').click()
self.selenium.switch_to_window('id_supporting_bands')
+ self.wait_page_loaded()
link = self.selenium.find_element_by_link_text('Bogey Blues')
self.assertTrue('/band/42/' in link.get_attribute('href'))
link.click()
@@ -897,6 +900,7 @@ def test_many_to_many(self):
# Reopen the popup window and click on another band
self.selenium.find_element_by_id('lookup_id_supporting_bands').click()
self.selenium.switch_to_window('id_supporting_bands')
+ self.wait_page_loaded()
link = self.selenium.find_element_by_link_text('Green Potatoes')
self.assertTrue('/band/98/' in link.get_attribute('href'))
link.click()
Please sign in to comment.
Something went wrong with that request. Please try again.