mirror of https://github.com/django/django.git
[2.2.x] Fixed LiveWidgetTests.test_textarea_trailing_newlines() crash on Chrome 75+.
Backport of b08a18f17b
from master
This commit is contained in:
parent
9d310b4236
commit
e33220ffd8
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue