Skip to content

Commit

Permalink
[FIX] web: disable phone test with voip
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mgeubelle committed Jun 21, 2017
1 parent 28b67ee commit e921f14
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions addons/web/static/tests/views/form_tests.js
Expand Up @@ -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;
Expand Down

0 comments on commit e921f14

Please sign in to comment.