summaryrefslogtreecommitdiff
path: root/addons/website/tests
diff options
context:
space:
mode:
authorRomainLibert <rli@odoo.com>2019-08-26 10:52:27 +0000
committerRomainLibert <rli@odoo.com>2019-08-28 11:13:18 +0000
commit6aaef4a3d95a9c2eeae698bda6a4082470e82a48 (patch)
treee3d05b9a756356558220a2a02f319f1375debae0 /addons/website/tests
parent85b5c9bbb4c558dec56de3351763496fc9e8fb1e (diff)
[FIX] website: fix ctx argument
In the call to Chart.js we pass a ctx which should be a DOM element, however we pass `null` as the ctx. It seems that what happens is that we look for the DOM element inside the `document` (via getElementById) but this element is not yet inserted into the document, hence this returns `null`. Since we already have a reference to the canvas element which should be used as ctx, we can probably just reuse this reference closes odoo/odoo#36072 Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
Diffstat (limited to 'addons/website/tests')
-rw-r--r--addons/website/tests/test_ui.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/website/tests/test_ui.py b/addons/website/tests/test_ui.py
index 2db952cc62c..dd2171276f5 100644
--- a/addons/website/tests/test_ui.py
+++ b/addons/website/tests/test_ui.py
@@ -109,3 +109,6 @@ class TestUi(odoo.tests.HttpCase):
])]
})
self.start_tour("/", 'restricted_editor', login='restricted')
+
+ def test_04_backend_dashboard(self):
+ self.start_tour("/", 'backend_dashboard', login='admin')