diff options
author | Martin Fischer <martin@push-f.com> | 2022-02-04 21:04:50 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2022-02-04 21:11:29 +0100 |
commit | 07936060d1aa95933b392847e58a5b72f6406774 (patch) | |
tree | 0a226dd6945899c4ffeb491ff920d2103458e00a /tests | |
parent | ae804ddf4016b140cc4ca879388594370334ffca (diff) | |
download | searxng-07936060d1aa95933b392847e58a5b72f6406774.tar.gz searxng-07936060d1aa95933b392847e58a5b72f6406774.zip |
preferences: Set autocomplete=off for form
Otherwise you can change the value of a select,
refresh the page and the preferences stay changed,
leaving the wrong impression that they were saved.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/test_webapp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/test_webapp.py b/tests/unit/test_webapp.py index fd7c72e60..7861a3b43 100644 --- a/tests/unit/test_webapp.py +++ b/tests/unit/test_webapp.py @@ -186,7 +186,7 @@ class ViewsTestCase(SearxTestCase): def test_preferences(self): result = self.app.get('/preferences') self.assertEqual(result.status_code, 200) - self.assertIn(b'<form method="post" action="/preferences" id="search_form">', result.data) + self.assertIn(b'<form method="post" action="/preferences" id="search_form" autocomplete="off">', result.data) self.assertIn(b'<label class="col-sm-3 col-md-2" for="categories">Default categories</label>', result.data) self.assertIn(b'<label class="col-sm-3 col-md-2" for="locale">Interface language</label>', result.data) |