[FIX] test_base_automation: fix failing tour

This commit fixes a tour that is failing undeterministically.

- Before
  The tour was saving a form dialog just before saving the main form.
  Sometimes, these two steps were too fast, leading for the second one
  not performing the main form save action.

- After
  The second step now awaits that the modal is closed before running.
  This element is the kanban record saved by the form dialog.

Fixes runbot error 24576

closes odoo/odoo#134776

Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
This commit is contained in:
Bruno Boi
2023-09-08 12:24:49 +00:00
parent 4a3bf1f847
commit d401f368c2
@@ -99,7 +99,9 @@ registry.category("web_tour.tours").add("test_base_automation", {
content: "Open update select",
trigger: ".modal-content .o_form_button_save",
},
...stepUtils.saveForm(),
...stepUtils.saveForm({
extra_trigger: ".o-overlay-container:not(:has(.modal-content))",
}),
],
});