Skip to content

Commit

Permalink
[2.2.x] Fixed LiveWidgetTests.test_textarea_trailing_newlines() crash…
Browse files Browse the repository at this point in the history
… on Chrome 75+.

Backport of b08a18f from master
  • Loading branch information
felixxm committed May 29, 2020
1 parent 9d310b4 commit e33220f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/forms_tests/tests/test_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ def test_textarea_trailing_newlines(self):
"""
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")

0 comments on commit e33220f

Please sign in to comment.