summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/views/graph_tests.js
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2019-07-16 13:11:13 +0000
committerAaron Bohy <aab@odoo.com>2019-07-17 06:54:49 +0000
commite2893ce3863ddf858ebee00096e06bbf010ddbc2 (patch)
treef8648bfb9dc8d3d6d380b1a33dc1c8e74d352153 /addons/web/static/tests/views/graph_tests.js
parent00c966b69a8d24fbaafdabfd7ee32d747c8b3783 (diff)
[REF] web: factorize no content helper
Different templates were defined for graph, pivot and cohort views for the no content helper. Those templates were similar (only the message sometimes slighlty changed). This rev. creates one generic template used by those three views. closes odoo/odoo#34916 Signed-off-by: Mathieu Duckerts-Antoine <Polymorphe57@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/tests/views/graph_tests.js')
-rw-r--r--addons/web/static/tests/views/graph_tests.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/tests/views/graph_tests.js b/addons/web/static/tests/views/graph_tests.js
index ca969fb9ac9..4db8f77feb4 100644
--- a/addons/web/static/tests/views/graph_tests.js
+++ b/addons/web/static/tests/views/graph_tests.js
@@ -979,7 +979,7 @@ QUnit.module('Views', {
var graph = self.actionManager.getCurrentController().widget;
if (self.combinationsToCheck[combination].errorMessage) {
assert.strictEqual(
- graph.$('.o_nocontent_help p').eq(1).text(),
+ graph.$('.o_nocontent_help p').eq(1).text().trim(),
self.combinationsToCheck[combination].errorMessage
);
} else {