From e921f14d24d4cbf39fe3e13256cf5966d7cf5fae Mon Sep 17 00:00:00 2001 From: Martin Geubelle Date: Wed, 21 Jun 2017 11:39:44 +0200 Subject: [PATCH] [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. --- addons/web/static/tests/views/form_tests.js | 8 ++++++++ 1 file changed, 8 insertions(+) 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;