[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:
Florian Apolloner 2013-09-15 10:44:29 +02:00
parent 4607c7325d
commit 4770fc1c62
1 changed files with 1 additions and 0 deletions

View File

@ -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")