diff options
| author | Julien Mougenot <jum@odoo.com> | 2020-03-11 09:38:27 +0000 |
|---|---|---|
| committer | Julien Mougenot <jum@odoo.com> | 2020-03-13 11:39:53 +0000 |
| commit | 0a129284e4856b6485c48a194fd86c3ab5c736e7 (patch) | |
| tree | dc0adb0c9528605019af5c915ad2c877f9aa1c57 /addons/web/static/tests/main_tests.js | |
| parent | 72f1633532a586e1ccee4d2a961d745553b9d8b8 (diff) | |
[IMP] web,*: Enhance test helpers
1. Test utils helpers adapted to properly instantiate the new Owl control panel
2. New file 'test_utils_control_panel' to create a control panel and use helpers
3. New helper: createComponent (creates a generic component, see jsdoc)
4. Use of the new helpers in the current tests (more in sibling commits)
5. Helper 'addMockEnvironment' is now asynchronous
6. Owl config mode set to 'dev' in test suite (props validation)
Part of task 2196029
Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com>
Diffstat (limited to 'addons/web/static/tests/main_tests.js')
| -rw-r--r-- | addons/web/static/tests/main_tests.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/web/static/tests/main_tests.js b/addons/web/static/tests/main_tests.js index 079a14573d2..97d9b051bbb 100644 --- a/addons/web/static/tests/main_tests.js +++ b/addons/web/static/tests/main_tests.js @@ -5,6 +5,8 @@ odoo.define('web.web_client', async function (require) { const session = require("web.session"); const WebClient = require('web.WebClient'); + owl.config.mode = "dev"; + const webClient = new WebClient(); await session.is_bound; |
