summaryrefslogtreecommitdiff
path: root/addons/web/tests
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2020-08-21 10:39:55 +0000
committerXavier Morel <xmo@odoo.com>2020-09-10 12:50:20 +0000
commitb992619840a70c600c50fac0383ad9396351af75 (patch)
treee838bdad0845d923cfd5f3c8e38de91222ac35a4 /addons/web/tests
parentf577cb715284616cbe220e3dba19ab027f0cc074 (diff)
[IMP] auth_totp: notify user on activation and deactivation of OTP
Was not super visible, especially without HR as the dialog immediately closes (limitation of the web client), or when an administrator user massively disables totp. Show a toast notification indicating the success of the action. Also fix the logging of `totp_disable` so it correctly handles being called on more than one record, and change the logging data to <browse_record> (<logins>) across the board. Also add a way to provide an action to execute after a notification: by default nothing happens, which leads to dialogs not closing and forms not reloading, and there is no good way to show a notification and/then do some other thing, which is inconvenient.
Diffstat (limited to 'addons/web/tests')
-rw-r--r--addons/web/tests/test_js.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/tests/test_js.py b/addons/web/tests/test_js.py
index 4d97e5f28d0..8a74daecbd2 100644
--- a/addons/web/tests/test_js.py
+++ b/addons/web/tests/test_js.py
@@ -12,7 +12,7 @@ class WebSuite(odoo.tests.HttpCase):
def test_js(self):
# webclient desktop test suite
- self.browser_js('/web/tests?mod=web&failfast', "", "", login='admin', timeout=1800)
+ self.browser_js('/web/tests?mod=web', "", "", login='admin', timeout=1800)
def test_check_suite(self):
# verify no js test is using `QUnit.only` as it forbid any other test to be executed