[FIX] theme_test_custo: use new utility to enter in edit mode

This commit permits to use the new utility to enter in edit mode. This
way, we make sure that the edit mode is enabled before testing the next
step of the test. This avoids race conditions during tests.

task-3203820

closes odoo/design-themes#650

Related: odoo/odoo#118849
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
This commit is contained in:
Guillaume (gdi)
2023-04-18 10:53:20 +00:00
parent 57de963baf
commit f4d818e772
@@ -29,11 +29,9 @@ wTourUtils.registerWebsitePreviewTour('theme_menu_hierarchies', {
trigger: 'iframe footer ul li a[href="/dogs"]',
run: () => null, // It's a check.
},
wTourUtils.clickOnEdit(),
...wTourUtils.clickOnEditAndWaitEditMode(),
{
content: 'Click on footer',
// TODO: this extra_trigger should be part of the `clickOnEdit` util
extra_trigger: "#oe_snippets.o_loaded",
trigger: 'iframe footer',
}, {
content: 'The theme custom footer template should be listed and selected',