summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/chrome/user_menu_tests.js
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2020-06-05 09:18:14 +0000
committerAaron Bohy <aab@odoo.com>2020-06-12 09:47:48 +0000
commitb4ba0fc34082deec8ca6c871ce7a203c0a3a61a4 (patch)
tree27451423f32b218e699d3135c398d338b249c5cd /addons/web/static/tests/chrome/user_menu_tests.js
parentdc260c324170a90fa737cd21dd528e39d658d9b6 (diff)
[FIX] *: adapt tests to env rework
This commit adapts tests following recent changes on the helpers. The main change is that addMockEnvironment (and all functions using it) are now async, as they need to wait for services to be started.
Diffstat (limited to 'addons/web/static/tests/chrome/user_menu_tests.js')
-rw-r--r--addons/web/static/tests/chrome/user_menu_tests.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/tests/chrome/user_menu_tests.js b/addons/web/static/tests/chrome/user_menu_tests.js
index 73c74b0753c..752697a5228 100644
--- a/addons/web/static/tests/chrome/user_menu_tests.js
+++ b/addons/web/static/tests/chrome/user_menu_tests.js
@@ -13,7 +13,7 @@ QUnit.module('chrome', {}, function () {
var parent = new Widget();
- testUtils.mock.addMockEnvironment(parent, {});
+ await testUtils.mock.addMockEnvironment(parent, {});
var userMenu = new UserMenu(parent);
await userMenu.appendTo($('body'));