diff options
| author | Martin Geubelle <mge@odoo.com> | 2017-06-21 11:39:44 +0200 |
|---|---|---|
| committer | Martin Geubelle <mge@odoo.com> | 2017-06-21 11:44:53 +0200 |
| commit | e921f14d24d4cbf39fe3e13256cf5966d7cf5fae (patch) | |
| tree | 9b3c67c1955327611c2d4a121ec1a04ee47db0b5 /addons/web/static | |
| parent | 28b67ee7dcc29cf85722d18d971fd2a9cc439093 (diff) | |
[FIX] web: disable phone test with voip
The module `crm.voip` alters the focusable behaviour of the phone
widget by overriding the `canCall` method.
We thus disable this test if the module is installed.
Diffstat (limited to 'addons/web/static')
| -rw-r--r-- | addons/web/static/tests/views/form_tests.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/addons/web/static/tests/views/form_tests.js b/addons/web/static/tests/views/form_tests.js index 9824c913960..86cfe1d796c 100644 --- a/addons/web/static/tests/views/form_tests.js +++ b/addons/web/static/tests/views/form_tests.js @@ -3286,6 +3286,14 @@ QUnit.module('Views', { }); QUnit.test('navigation with tab key in readonly form view', function (assert) { + // The behavior of the phone widget is completely altered by crm_voip so + // this test fails if crm_voip is installed. The enterprise module is + // responsible for testing its own behavior in its own tests. + if ('crm.voip' in odoo.__DEBUG__.services) { + assert.expect(0); + return; + } + assert.expect(3); this.data.partner.records[1].product_id = 37; |
