[FIX] web: fix phone widget tests with crm_voip
This commit is contained in:
committed by
Aaron Bohy
parent
2106e3dd2e
commit
c8fd0e4507
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user