summaryrefslogtreecommitdiff
path: root/addons/web/static/test/fields/basic_fields_tests.js
diff options
context:
space:
mode:
authorDavid Monjoie <dmo@odoo.com>2017-03-24 10:30:49 +0100
committerAaron Bohy <aab@odoo.com>2017-04-11 19:44:38 +0200
commitc8fd0e4507a3a1f677ae69bb877fa62766e397d6 (patch)
treefa64fe3fd67b71f3bc41e244608f8db99d56ab9c /addons/web/static/test/fields/basic_fields_tests.js
parent2106e3dd2ecd61096d7c7531c2f18b00fb30aeea (diff)
[FIX] web: fix phone widget tests with crm_voip
Diffstat (limited to 'addons/web/static/test/fields/basic_fields_tests.js')
-rw-r--r--addons/web/static/test/fields/basic_fields_tests.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/addons/web/static/test/fields/basic_fields_tests.js b/addons/web/static/test/fields/basic_fields_tests.js
index 9ed0bb5c169..09d590f40c2 100644
--- a/addons/web/static/test/fields/basic_fields_tests.js
+++ b/addons/web/static/test/fields/basic_fields_tests.js
@@ -1430,6 +1430,14 @@ QUnit.module('basic_fields', {
});
QUnit.test('phone field in form view on normal screens', function (assert) {
+ // The behavior of this widget is completely altered by crm_voip so this
+ // test is irrelevant and 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(5);
var form = createView({
@@ -1477,6 +1485,14 @@ QUnit.module('basic_fields', {
});
QUnit.test('phone field in editable list view on normal screens', function(assert) {
+ // The behavior of this widget is completely altered by crm_voip so this
+ // test is irrelevant and 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(8);
var list = createView({