mirror of
https://github.com/searxng/searxng.git
synced 2025-07-24 21:59:22 +02:00
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.
This commit is contained in:
parent
ae804ddf40
commit
07936060d1
3 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue