summaryrefslogtreecommitdiff
path: root/addons/web/static/tests
diff options
context:
space:
mode:
authorVandan Shah <vas@odoo.com>2018-05-11 07:01:55 +0000
committerYannick Tivisse <yti@odoo.com>2019-02-19 11:01:40 +0000
commitd09ecc8b182f93a1fd6cd5a67b327a1ab3bc4f99 (patch)
tree65d625e5e9d9631126dbb53735257b6818a40c4f /addons/web/static/tests
parentf5c269db121323d6fcc6d58b0ef335ca3be24db1 (diff)
[IMP] web: improve kanban tooltip
1) Remove the total record tooltip from kanban group. 2) Remove progressbar help from kanban view. 3) Improvements in testcase since we have removed total record tooltip.
Diffstat (limited to 'addons/web/static/tests')
-rw-r--r--addons/web/static/tests/views/kanban_tests.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/addons/web/static/tests/views/kanban_tests.js b/addons/web/static/tests/views/kanban_tests.js
index 7aefee4db0d..bb2231a025d 100644
--- a/addons/web/static/tests/views/kanban_tests.js
+++ b/addons/web/static/tests/views/kanban_tests.js
@@ -4246,15 +4246,13 @@ QUnit.module('Views', {
"column should contain 1 record(s)");
assert.ok(kanban.$('.o_kanban_group:first span.o_column_title:contains(Undefined)').length,
"first column should have a default title for when no value is provided");
- assert.strictEqual(kanban.$('.o_kanban_group:first .o_kanban_header_title').data('original-title'),
- "<p>1 records</p>",
- "first column should have a tooltip with the number of records, but not" +
- "the group_by_tooltip title and the many2one field value since it has no value");
+ assert.ok(!kanban.$('.o_kanban_group:first .o_kanban_header_title').data('original-title'),
+ "tooltip of first column should not defined, since group_by_tooltip title and the many2one field has no value");
assert.ok(kanban.$('.o_kanban_group:eq(1) span.o_column_title:contains(hello)').length,
"second column should have a title with a value from the many2one");
assert.strictEqual(kanban.$('.o_kanban_group:eq(1) .o_kanban_header_title').data('original-title'),
- "<p>2 records</p><div>Kikou<br>hello</div>",
- "second column should have a tooltip with the number of records, the group_by_tooltip title and many2one field value");
+ "<div>Kikou</br>hello</div>",
+ "second column should have a tooltip with the group_by_tooltip title and many2one field value");
kanban.destroy();
});