summaryrefslogtreecommitdiff
path: root/addons/web/tests
diff options
context:
space:
mode:
authorChristophe Monniez <moc@odoo.com>2020-03-04 21:42:20 +0000
committerChristophe Monniez <moc@odoo.com>2020-03-05 08:06:02 +0000
commitbf3f67be280d90f4a3454e20b00df042c2cdca5c (patch)
treec7b101fd2f686f8cf70966dfbb2524da8fa3047f /addons/web/tests
parent1a7e0fb01bb8669fe20b832b467f2c24fb0c25f3 (diff)
[IMP] web: add a light mode to clickEverywhere test
The test clickEverywhere may last a very long time when all modules are installed. For that reason, it's not a standard test and we run it at night. Unfortunately, it may happen that an App menu breaks and that this failure is only spotted the next morning. With this commit, a light mode is added to the clickEverywhere test. In this mode, only the app menus are tested. Also, two python tests are added that use this mode and are launched as standard tests. closes odoo/odoo#46934 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Diffstat (limited to 'addons/web/tests')
-rw-r--r--addons/web/tests/test_click_everywhere.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/addons/web/tests/test_click_everywhere.py b/addons/web/tests/test_click_everywhere.py
index 3fb1a00f954..7f2d16d75d6 100644
--- a/addons/web/tests/test_click_everywhere.py
+++ b/addons/web/tests/test_click_everywhere.py
@@ -28,3 +28,15 @@ class TestMenusDemo(odoo.tests.HttpCase):
_logger.log(25, 'Testing %s', app['name'])
self.browser_js("/web", "odoo.__DEBUG__.services['web.clickEverywhere'](%d);" % app['id'], "odoo.isReady === true", login="demo", timeout=300)
self.terminate_browser()
+
+@odoo.tests.tagged('post_install', '-at_install')
+class TestMenusAdminLight(odoo.tests.HttpCase):
+
+ def test_01_click_apps_menus_as_admin(self):
+ self.browser_js("/web", "odoo.__DEBUG__.services['web.clickEverywhere'](undefined, true);", "odoo.isReady === true", login="admin", timeout=120)
+
+@odoo.tests.tagged('post_install', '-at_install',)
+class TestMenusDemoLight(odoo.tests.HttpCase):
+
+ def test_01_click_apps_menus_as_demo(self):
+ self.browser_js("/web", "odoo.__DEBUG__.services['web.clickEverywhere'](undefined, true);", "odoo.isReady === true", login="demo", timeout=120)