diff options
| author | Pierre Paridans <app@odoo.com> | 2019-08-22 09:25:18 +0000 |
|---|---|---|
| committer | Pierre Paridans <app@odoo.com> | 2019-08-26 14:13:06 +0000 |
| commit | 96a52daa80b18d129bd9dbf332c1dd52d062629a (patch) | |
| tree | efdfb08dbd82a1e1c590cc9ff4daea2b6bd8fd6d /addons/web/static/tests/fields/relational_fields/field_many2many_tests.js | |
| parent | 0a540e0ef25a439e29a762de5b35a2c6a63ad7f7 (diff) | |
[REF] web: remove test coverage overlap in mobile test suite
The tests in the file `relational_fields_mobile_tests.js` - which is
part of the mobile test suite - are actually not specific to mobile.
This commit merges those tests asserts into the tests already present in
the regular test suite. It ensures that all the existing asserts remains
and the actual coverage stays the same.
Diffstat (limited to 'addons/web/static/tests/fields/relational_fields/field_many2many_tests.js')
| -rw-r--r-- | addons/web/static/tests/fields/relational_fields/field_many2many_tests.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/web/static/tests/fields/relational_fields/field_many2many_tests.js b/addons/web/static/tests/fields/relational_fields/field_many2many_tests.js index ab80fd59983..db0fb3632d3 100644 --- a/addons/web/static/tests/fields/relational_fields/field_many2many_tests.js +++ b/addons/web/static/tests/fields/relational_fields/field_many2many_tests.js @@ -116,7 +116,7 @@ QUnit.module('fields', {}, function () { QUnit.module('FieldMany2Many'); QUnit.test('many2many kanban: edition', async function (assert) { - assert.expect(32); + assert.expect(33); this.data.partner.records[0].timmy = [12, 14]; this.data.partner_type.records.push({ id: 15, display_name: "red", color: 6 }); @@ -250,6 +250,7 @@ QUnit.module('fields', {}, function () { assert.strictEqual($('.modal .modal-footer .o_btn_remove').length, 1, 'There should be a modal having Remove Button'); await testUtils.dom.click($('.modal .modal-footer .o_btn_remove')); + assert.containsNone($('.o_modal'), "modal should have been closed"); assert.strictEqual(form.$('.o_kanban_record:not(.o_kanban_ghost)').length, 5, 'should contain 5 records'); assert.ok(!form.$('.o_kanban_record:contains(silver)').length, |
