mirror of https://github.com/django/django.git
[1.5.x] (Hopefully) fixed a failure in a selenium test.
No forward port to 1.6 since it has new transactionmanagement. The wait_page_loaded should ensure that the liveserver has time to tear down properly after the submit.
This commit is contained in:
parent
4607c7325d
commit
4770fc1c62
|
@ -1112,6 +1112,7 @@ class LiveWidgetTests(AdminSeleniumWebDriverTestCase):
|
|||
self.selenium.get('%s%s' % (self.live_server_url,
|
||||
reverse('article_form', args=[article.pk])))
|
||||
self.selenium.find_element_by_id('submit').submit()
|
||||
self.wait_page_loaded()
|
||||
article = Article.objects.get(pk=article.pk)
|
||||
# Should be "\nTst\n" after #19251 is fixed
|
||||
self.assertEqual(article.content, "\r\nTst\r\n")
|
||||
|
|
Loading…
Reference in New Issue