summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/tools/test_menus_loader.js
AgeCommit message (Collapse)Author
2020-03-18[FIX] web: update clickAll test helpersJulien Mougenot
Before this commit and following the refactoring of the home menu and the control panel to the Owl framework, some of the helpers of the 'clickEverywhere' test have not been properly updated to the new classes/behaviours. Now the selectors target the right elements and some actions that were previously synchronous are now properly awaited (home menu toggling, filter menu interactions, etc.). Also slightly changed the behaviour of the clickAll functions: - requesting a click on a null element will make the test crash (added some conditions to avoid this in a standard flow). - any error crashing the test at a deeper level will be displayed in the console - an animation frame is awaited after clicking on an element. This is to comply with the Owl rendering system. closes odoo/odoo#47762 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-03-05[IMP] web: add a light mode to clickEverywhere testChristophe Monniez
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>
2019-10-22[FIX] web: nightly clickall timeoutsJulien Castiaux
The nightly clickall runbot fail due to a crash of the underlying chrome browser used to run the test suite. The problem is related to the resources the browser is using. We leverage the problem by starting one dedicated browser per app. closes odoo/odoo#39190 X-original-commit: 228e57d980839bd2b4e9123bf26f8a64de2ae6ab Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
2018-08-29[IMP] web: New test to test Odoo menusChristophe Monniez
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();'.