[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 <IT-Ideas@users.noreply.github.com>
This commit is contained in:
Thibault Libioulle
2021-06-02 13:35:22 +00:00
parent a2fa71a565
commit 8e33f7cfaa
@@ -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'