summaryrefslogtreecommitdiff
path: root/addons/web/tests
diff options
context:
space:
mode:
authorChristophe Monniez <moc@odoo.com>2018-08-30 13:41:14 +0200
committerChristophe Monniez <moc@odoo.com>2018-08-31 14:45:25 +0200
commit4e7fcf3e07619145d8460217b91e85709db1500d (patch)
treeea93dfd710be49b6755a35eec00d4738b525191c /addons/web/tests
parentde1631c7174de31542fc38e29dd64dd092230995 (diff)
[FIX] web: wait web client to be ready before clickEverywhere test
When starting the clickEverywhere test with enterprise modules installed, it happens that Odoo web client is not yet fully loaded. In this situation, the test does not find any app to test. With this commit, an attribute is added to odoo to check if the web client is fully loaded.
Diffstat (limited to 'addons/web/tests')
-rw-r--r--addons/web/tests/test_click_everywhere.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/tests/test_click_everywhere.py b/addons/web/tests/test_click_everywhere.py
index 1e79104c30f..00c233a24e7 100644
--- a/addons/web/tests/test_click_everywhere.py
+++ b/addons/web/tests/test_click_everywhere.py
@@ -7,11 +7,11 @@ import odoo.tests
class TestMenusAdmin(odoo.tests.HttpCase):
def test_01_click_everywhere_as_admin(self):
- self.browser_js("/web", "odoo.__DEBUG__.services['web.clickEverywhere']();", "'web.clickEverywhere' in odoo.__DEBUG__.services", login="admin", timeout=1800)
+ self.browser_js("/web", "odoo.__DEBUG__.services['web.clickEverywhere']();", "odoo.isReady === true", login="admin", timeout=1800)
@odoo.tests.tagged('click_all', 'post_install', '-at_install', '-standard')
class TestMenusDemo(odoo.tests.HttpCase):
def test_01_click_everywhere_as_demo(self):
- self.browser_js("/web", "odoo.__DEBUG__.services['web.clickEverywhere']();", "'web.clickEverywhere' in odoo.__DEBUG__.services", login="demo", timeout=1800)
+ self.browser_js("/web", "odoo.__DEBUG__.services['web.clickEverywhere']();", "odoo.isReady === true", login="demo", timeout=1800)