[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#656

X-original-commit: 38e0c87ae3
Related: odoo/odoo#120481
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
Signed-off-by: Guillaume-gdi <gdi@odoo.com>
This commit is contained in:
Guillaume (gdi)
2023-04-18 10:53:20 +00:00
parent 7ab07c6ec1
commit 1c029c860b
@@ -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',