[IMP] theme_*: add precondition on tour to ensure expected theme

This commit adds a precondition to verify the presence of the specific
theme at the beginning of their tour.

See https://github.com/odoo/odoo/pull/100690.

task-2687506

closes odoo/design-themes#594

X-original-commit: 8b377af3a7
Related: odoo/odoo#101119
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
This commit is contained in:
Benoit Socias
2022-09-21 09:20:55 +00:00
parent c95aa445fa
commit f127ff3741
27 changed files with 27 additions and 1 deletions
+1
View File
@@ -31,6 +31,7 @@ const snippets = [
];
wTourUtils.registerThemeHomepageTour("notes_tour", [
wTourUtils.assertCssVariable('--color-palettes-name', '"notes-1"'),
wTourUtils.dragNDrop(snippets[0]),
wTourUtils.clickOnText(snippets[0], 'h1'),
wTourUtils.goBackToBlocks(),