From cfc049c0a9181fd3aca4044b5f366fc870467302 Mon Sep 17 00:00:00 2001 From: "Hubert Van de Walle (huvw)" Date: Tue, 6 Jun 2023 12:12:24 +0000 Subject: [PATCH] [FIX] web: indeterministic test fail Apply the same solution used in other tests with "test:hashchange": ```js await testUtils.nextTick(); await legacyExtraNextTick(); ``` closes odoo/odoo#124041 X-original-commit: 8bd9809bc4700637ffb26bbcfbd00c62b0dbd220 Signed-off-by: Aaron Bohy (aab) Signed-off-by: Hubert Van De Walle --- .../web/static/tests/webclient/actions/window_action_tests.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/web/static/tests/webclient/actions/window_action_tests.js b/addons/web/static/tests/webclient/actions/window_action_tests.js index ebfc48a9610..024175b4540 100644 --- a/addons/web/static/tests/webclient/actions/window_action_tests.js +++ b/addons/web/static/tests/webclient/actions/window_action_tests.js @@ -571,6 +571,7 @@ QUnit.module("ActionManager", (hooks) => { action: 3, view_type: "form", }); + await testUtils.nextTick(); await legacyExtraNextTick(); // Go back to the list view @@ -579,7 +580,7 @@ QUnit.module("ActionManager", (hooks) => { action: 3, view_type: "list", }); - await legacyExtraNextTick(); + await testUtils.nextTick(); await legacyExtraNextTick(); assert.containsOnce(target, ".o_list_view", "should still display the list view");