From 2b3296bbf8b5d08fad20a4ca8d83ebb0aa7303b3 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Mon, 11 Mar 2019 10:16:53 +0000 Subject: [PATCH] [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 --- addons/web/static/tests/fields/relational_fields_tests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/tests/fields/relational_fields_tests.js b/addons/web/static/tests/fields/relational_fields_tests.js index 5b3ff08a1b6..ec8b06b6351 100644 --- a/addons/web/static/tests/fields/relational_fields_tests.js +++ b/addons/web/static/tests/fields/relational_fields_tests.js @@ -1270,7 +1270,7 @@ QUnit.module('relational_fields', { '', }); 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");