Skip to content

Commit 8e33f7c

Browse files
committed
[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 : odoo#68899 Associated task : task-2393768 closes odoo#71605 Signed-off-by: LTU-Odoo <IT-Ideas@users.noreply.github.com>
1 parent a2fa71a commit 8e33f7c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

addons/project/static/tests/tours/project_update_tour_tests.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,12 @@ tour.register('project_update_tour', {
108108
trigger: ".o_back_button"
109109
}, {
110110
trigger: ".o_open_milestone:eq(1) .o_milestone_detail span:eq(0)",
111-
extra_trigger: ".o_add_milestone a"
111+
extra_trigger: ".o_add_milestone a",
112+
run: function () {
113+
setTimeout(() => {
114+
this.$anchor.click();
115+
}, 500);
116+
},
112117
}, {
113118
trigger: "input.datetimepicker-input[name=deadline]",
114119
run: 'text 12/12/2100'

0 commit comments

Comments
 (0)