From 8e33f7cfaae2ac3e1483deb44cc3b2c2e9a89c4b Mon Sep 17 00:00:00 2001 From: Thibault Libioulle Date: Wed, 2 Jun 2021 13:35:22 +0000 Subject: [PATCH] [FIX] project: fix milestone form test Previously, the step produced an owl error do to the fact that FormViewDialogComponentAdapter parent component was not ready in the view. This commit adds a timeout, that waits the component to be completely rendered. Associated PR : #68899 Associated task : task-2393768 closes odoo/odoo#71605 Signed-off-by: LTU-Odoo --- .../static/tests/tours/project_update_tour_tests.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/addons/project/static/tests/tours/project_update_tour_tests.js b/addons/project/static/tests/tours/project_update_tour_tests.js index 98109fb6a52..5227a4e960b 100644 --- a/addons/project/static/tests/tours/project_update_tour_tests.js +++ b/addons/project/static/tests/tours/project_update_tour_tests.js @@ -108,7 +108,12 @@ tour.register('project_update_tour', { trigger: ".o_back_button" }, { trigger: ".o_open_milestone:eq(1) .o_milestone_detail span:eq(0)", - extra_trigger: ".o_add_milestone a" + extra_trigger: ".o_add_milestone a", + run: function () { + setTimeout(() => { + this.$anchor.click(); + }, 500); + }, }, { trigger: "input.datetimepicker-input[name=deadline]", run: 'text 12/12/2100'