From 22d905bbb5d16662deae93e318da230c0a195a5e Mon Sep 17 00:00:00 2001 From: "Francois (fge)" Date: Fri, 27 Aug 2021 12:55:14 +0000 Subject: [PATCH] [FIX] web: owl_dialog_tests tests without module Two tests in owl_dialog_tests were not correctly added in the parent module of owl_dialog_tests. These orphaned tests will therefore be associated with the previous Qunit.module("name") and it will use its beforeEach. If the module used does a makeTestEnv in its beforeEach, then the "remove tabindex on inactive dialog" test will cause "Error: Cannot add 'xxx' in this registry: it already exists" errors because the test call createWebClient that does a second makeTestEnv. closes odoo/odoo#75696 Signed-off-by: Lucas Perais (lpe) --- .../tests/legacy/core/owl_dialog_tests.js | 280 +++++++++--------- 1 file changed, 140 insertions(+), 140 deletions(-) diff --git a/addons/web/static/tests/legacy/core/owl_dialog_tests.js b/addons/web/static/tests/legacy/core/owl_dialog_tests.js index 70dc4149a0f..2b9a404275d 100644 --- a/addons/web/static/tests/legacy/core/owl_dialog_tests.js +++ b/addons/web/static/tests/legacy/core/owl_dialog_tests.js @@ -341,169 +341,169 @@ odoo.define('web.owl_dialog_tests', function (require) { parent.unmount(); parent.destroy(); }); - }); - QUnit.test("Z-index toggling and interactions", async function (assert) { - assert.expect(3); + QUnit.test("Z-index toggling and interactions", async function (assert) { + assert.expect(3); - function createCustomModal(className) { - const $modal = $( - `