[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.
This commit is contained in:
Martin Geubelle
2017-06-21 11:44:53 +02:00
parent 28b67ee7dc
commit e921f14d24
@@ -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;