diff options
| author | Aaron Bohy <aab@odoo.com> | 2020-06-05 09:18:14 +0000 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2020-06-12 09:47:48 +0000 |
| commit | b4ba0fc34082deec8ca6c871ce7a203c0a3a61a4 (patch) | |
| tree | 27451423f32b218e699d3135c398d338b249c5cd /addons/web_tour/static | |
| parent | dc260c324170a90fa737cd21dd528e39d658d9b6 (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_tour/static')
| -rw-r--r-- | addons/web_tour/static/tests/tour_manager_tests.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_tour/static/tests/tour_manager_tests.js b/addons/web_tour/static/tests/tour_manager_tests.js index 79ce4c0ceb5..14802f9086f 100644 --- a/addons/web_tour/static/tests/tour_manager_tests.js +++ b/addons/web_tour/static/tests/tour_manager_tests.js @@ -20,7 +20,7 @@ odoo.define('web_tour.tour_manager_tests', async function (require) { * @param {Object[]} params.tours { {string} name, {Object} option, {Object[]} steps } */ async function createTourManager({ consumed_tours, debug, template, tours }) { - const parent = testUtils.createParent({ debug }); + const parent = await testUtils.createParent({ debug }); const tourManager = new TourManager(parent, consumed_tours); tourManager.running_step_delay = 0; for (const { name, options, steps } of tours) { |
