[FIX] web: use stricter css selector in new test

It allow not matching the dropdowns of the search view.

closes odoo/odoo#31738

Signed-off-by: Christophe Simonis <chs@odoo.com>
This commit is contained in:
Christophe Simonis
2019-03-11 10:16:53 +00:00
parent ae8aac2a18
commit 2b3296bbf8
@@ -1270,7 +1270,7 @@ QUnit.module('relational_fields', {
'</tree>',
});
assert.containsN(list, '.o_field_many2manytags .badge', 2, "there should be 2 tags");
assert.containsNone(list, '.dropdown-toggle', "the tags should not be dropdowns");
assert.containsNone(list, '.badge.dropdown-toggle', "the tags should not be dropdowns");
testUtils.intercept(list, 'switch_view', function (event) {
assert.strictEqual(event.data.view_type, "form", "should switch to form view");