summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/fields/basic_fields_tests.js
diff options
context:
space:
mode:
authorMartin Geubelle <mge@odoo.com>2019-01-07 12:27:28 +0000
committerMartin Geubelle <mge@odoo.com>2019-01-08 13:46:01 +0000
commitb4e9410f6a1922ff47ed9f2d38fe685ee4d57dbd (patch)
tree049b54e9fdd60e5e704eef17b20834f52cc1d1fe /addons/web/static/tests/fields/basic_fields_tests.js
parentfb693b65ff8a64addf8273a92cafdd52bb0e98f1 (diff)
[IMP] web: use `showSearchInput` in model field selector
The option `showSearchInput`, which is used on the model field selector to display a search input that filters the displayed fields, is not set by default. This includes the model field selector instantiated in the `domain` field widget. closes odoo/odoo#29986
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
-rw-r--r--addons/web/static/tests/fields/basic_fields_tests.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/web/static/tests/fields/basic_fields_tests.js b/addons/web/static/tests/fields/basic_fields_tests.js
index f5568abe28e..c1edd28ce20 100644
--- a/addons/web/static/tests/fields/basic_fields_tests.js
+++ b/addons/web/static/tests/fields/basic_fields_tests.js
@@ -5164,7 +5164,7 @@ QUnit.module('basic_fields', {
});
QUnit.test('basic domain field usage is ok', function (assert) {
- assert.expect(6);
+ assert.expect(7);
this.data.partner.records[0].foo = "[]";
@@ -5205,6 +5205,9 @@ QUnit.module('basic_fields', {
assert.ok($fieldSelectorPopover.is(":visible"),
"field selector popover should be visible");
+ assert.containsOnce($fieldSelectorPopover, '.o_field_selector_search input',
+ "field selector popover should contain a search input");
+
// The popover should contain the list of partner_type fields and so
// there should be the "Color index" field
var $lis = $fieldSelectorPopover.find("li");