[2.2.x] Fixed LiveWidgetTests.test_textarea_trailing_newlines() crash on Chrome 75+.

Backport of b08a18f17b from master
This commit is contained in:
Mariusz Felisiak 2019-06-18 11:38:51 +02:00
parent 9d310b4236
commit e33220ffd8
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")