diff options
| author | Christophe Monniez <moc@odoo.com> | 2018-07-04 16:32:05 +0200 |
|---|---|---|
| committer | Christophe Monniez <moc@odoo.com> | 2018-08-29 16:57:27 +0200 |
| commit | 3f0ebca1924afb538c6f7960a42aba725654c643 (patch) | |
| tree | 1bcdb20706658bdde4487c38abad1d4b5204c5bc /addons/web/static/src/js/tools/test_menus_loader.js | |
| parent | 19cc218d03c9e2eb32ce354db96668b4c5280854 (diff) | |
[IMP] web: New test to test Odoo menus
This commit adds a new js test in web that enters each app and click on
each view switcher, each menu and each search filter.
This test is tagged '-standard' and 'click_all' as it could last a long
time, that way it's not executed by default.
It could also be started from the browser console with
'clickEverywhere();'.
Diffstat (limited to 'addons/web/static/src/js/tools/test_menus_loader.js')
| -rw-r--r-- | addons/web/static/src/js/tools/test_menus_loader.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/addons/web/static/src/js/tools/test_menus_loader.js b/addons/web/static/src/js/tools/test_menus_loader.js new file mode 100644 index 00000000000..b126d3bb4d8 --- /dev/null +++ b/addons/web/static/src/js/tools/test_menus_loader.js @@ -0,0 +1,12 @@ +odoo.define('web.clickEverywhere', function (require) { + "use strict"; + var ajax = require('web.ajax'); + function startClickEverywhere() { + ajax.loadJS('web/static/src/js/tools/test_menus.js').then( + function() { + clickEverywhere(); + } + ); + } + return startClickEverywhere; +}); |
