Fixed LiveWidgetTests.test_textarea_trailing_newlines() crash on Chrome 75+.

This commit is contained in:
Mariusz Felisiak 2019-06-18 11:38:51 +02:00 committed by GitHub
parent 6e8303d49b
commit b08a18f17b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -16,6 +16,6 @@ class LiveWidgetTests(AdminSeleniumTestCase):
"""
article = Article.objects.create(content="\nTst\n")
self.selenium.get(self.live_server_url + reverse('article_form', args=[article.pk]))
self.selenium.find_element_by_id('submit').submit()
self.selenium.find_element_by_id('submit').click()
article = Article.objects.get(pk=article.pk)
self.assertEqual(article.content, "\r\nTst\r\n")