From e33220ffd8ff59039890a1d9c35e3f4f7d96f3a8 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Tue, 18 Jun 2019 11:38:51 +0200 Subject: [PATCH] [2.2.x] Fixed LiveWidgetTests.test_textarea_trailing_newlines() crash on Chrome 75+. Backport of b08a18f17ba53eb0bc7fd7993924f3d7f8ed5c52 from master --- tests/forms_tests/tests/test_widgets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/forms_tests/tests/test_widgets.py b/tests/forms_tests/tests/test_widgets.py index 3e137532b97..9d06075c9b6 100644 --- a/tests/forms_tests/tests/test_widgets.py +++ b/tests/forms_tests/tests/test_widgets.py @@ -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")