|
@@ -993,7 +993,7 @@ class AdminRawIdWidgetSeleniumFirefoxTests(AdminSeleniumWebDriverTestCase):
|
|
|
|
|
|
# The field now contains the selected band's id
|
|
|
self.selenium.switch_to_window(main_window)
|
|
|
- self.wait_for_text('#id_main_band', '42')
|
|
|
+ self.wait_for_value('#id_main_band', '42')
|
|
|
|
|
|
# Reopen the popup window and click on another band
|
|
|
self.selenium.find_element_by_id('lookup_id_main_band').click()
|
|
@@ -1005,7 +1005,7 @@ class AdminRawIdWidgetSeleniumFirefoxTests(AdminSeleniumWebDriverTestCase):
|
|
|
|
|
|
# The field now contains the other selected band's id
|
|
|
self.selenium.switch_to_window(main_window)
|
|
|
- self.wait_for_text('#id_main_band', '98')
|
|
|
+ self.wait_for_value('#id_main_band', '98')
|
|
|
|
|
|
def test_many_to_many(self):
|
|
|
self.admin_login(username='super', password='secret', login_url='/')
|
|
@@ -1028,7 +1028,7 @@ class AdminRawIdWidgetSeleniumFirefoxTests(AdminSeleniumWebDriverTestCase):
|
|
|
|
|
|
# The field now contains the selected band's id
|
|
|
self.selenium.switch_to_window(main_window)
|
|
|
- self.wait_for_text('#id_supporting_bands', '42')
|
|
|
+ self.wait_for_value('#id_supporting_bands', '42')
|
|
|
|
|
|
# Reopen the popup window and click on another band
|
|
|
self.selenium.find_element_by_id('lookup_id_supporting_bands').click()
|
|
@@ -1040,7 +1040,7 @@ class AdminRawIdWidgetSeleniumFirefoxTests(AdminSeleniumWebDriverTestCase):
|
|
|
|
|
|
# The field now contains the two selected bands' ids
|
|
|
self.selenium.switch_to_window(main_window)
|
|
|
- self.wait_for_text('#id_supporting_bands', '42,98')
|
|
|
+ self.wait_for_value('#id_supporting_bands', '42,98')
|
|
|
|
|
|
|
|
|
class AdminRawIdWidgetSeleniumChromeTests(AdminRawIdWidgetSeleniumFirefoxTests):
|
|
@@ -1084,7 +1084,7 @@ class RelatedFieldWidgetSeleniumFirefoxTests(AdminSeleniumWebDriverTestCase):
|
|
|
|
|
|
# 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_page_loaded()
|
|
|
+ self.wait_for_text('li.success', 'The profile "newuser" was added successfully.')
|
|
|
profiles = models.Profile.objects.all()
|
|
|
self.assertEqual(len(profiles), 1)
|
|
|
self.assertEqual(profiles[0].user.username, username_value)
|