mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[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#590 Related: odoo/odoo#100690 Signed-off-by: Romain Derie (rde) <rde@odoo.com>
This commit is contained in:
@@ -34,6 +34,7 @@ const snippets = [
|
||||
];
|
||||
|
||||
wTourUtils.registerThemeHomepageTour("anelusia_tour", [
|
||||
wTourUtils.assertCssVariable('--color-palettes-name', '"generic-17"'),
|
||||
wTourUtils.dragNDrop(snippets[0]),
|
||||
wTourUtils.clickOnText(snippets[0], 'h1', 'top'),
|
||||
wTourUtils.goBackToBlocks(),
|
||||
|
||||
@@ -30,6 +30,7 @@ const snippets = [
|
||||
];
|
||||
|
||||
wTourUtils.registerThemeHomepageTour("artists_tour", [
|
||||
wTourUtils.assertCssVariable('--color-palettes-name', '"artists-1"'),
|
||||
wTourUtils.dragNDrop(snippets[0], 'top'),
|
||||
wTourUtils.dragNDrop(snippets[1]),
|
||||
wTourUtils.clickOnText(snippets[1], 'h2'),
|
||||
|
||||
@@ -25,6 +25,7 @@ const snippets = [
|
||||
];
|
||||
|
||||
wTourUtils.registerThemeHomepageTour("avantgarde_tour", [
|
||||
wTourUtils.assertCssVariable('--color-palettes-name', '"avantgarde-3"'),
|
||||
wTourUtils.dragNDrop(snippets[0], 'top'),
|
||||
wTourUtils.clickOnText(snippets[0], 'h1', 'left'),
|
||||
wTourUtils.goBackToBlocks(),
|
||||
|
||||
@@ -31,6 +31,7 @@ const snippets = [
|
||||
];
|
||||
|
||||
wTourUtils.registerThemeHomepageTour("aviato_tour", [
|
||||
wTourUtils.assertCssVariable('--color-palettes-name', '"treehouse-5"'),
|
||||
wTourUtils.dragNDrop(snippets[0]),
|
||||
wTourUtils.clickOnText(snippets[0], 'h1', 'top'),
|
||||
wTourUtils.goBackToBlocks(),
|
||||
|
||||
@@ -30,6 +30,7 @@ const snippets = [
|
||||
];
|
||||
|
||||
wTourUtils.registerThemeHomepageTour("beauty_tour", [
|
||||
wTourUtils.assertCssVariable('--color-palettes-name', '"beauty-1"'),
|
||||
wTourUtils.dragNDrop(snippets[0]),
|
||||
wTourUtils.clickOnText(snippets[0], 'h1'),
|
||||
wTourUtils.goBackToBlocks(),
|
||||
|
||||
@@ -34,6 +34,7 @@ const snippets = [
|
||||
];
|
||||
|
||||
wTourUtils.registerThemeHomepageTour("bewise_tour", [
|
||||
wTourUtils.assertCssVariable('--color-palettes-name', '"bewise-1"'),
|
||||
wTourUtils.dragNDrop(snippets[0], 'top'),
|
||||
wTourUtils.clickOnText(snippets[0], 'h1', 'top'),
|
||||
wTourUtils.goBackToBlocks(),
|
||||
|
||||
@@ -30,6 +30,7 @@ const snippets = [
|
||||
];
|
||||
|
||||
wTourUtils.registerThemeHomepageTour("bistro_tour", [
|
||||
wTourUtils.assertCssVariable('--color-palettes-name', '"bistro-5"'),
|
||||
wTourUtils.dragNDrop(snippets[0]),
|
||||
wTourUtils.clickOnText(snippets[0], 'h1', 'top'),
|
||||
wTourUtils.goBackToBlocks(),
|
||||
|
||||
@@ -31,6 +31,7 @@ const snippets = [
|
||||
];
|
||||
|
||||
wTourUtils.registerThemeHomepageTour("bookstore_tour", [
|
||||
wTourUtils.assertCssVariable('--color-palettes-name', '"generic-8"'),
|
||||
wTourUtils.dragNDrop(snippets[0]),
|
||||
wTourUtils.clickOnText(snippets[0], 'h1'),
|
||||
wTourUtils.goBackToBlocks(),
|
||||
|
||||
@@ -30,6 +30,7 @@ const snippets = [
|
||||
];
|
||||
|
||||
wTourUtils.registerThemeHomepageTour("buzzy_tour", [
|
||||
wTourUtils.assertCssVariable('--color-palettes-name', '"kiddo-2"'),
|
||||
wTourUtils.dragNDrop(snippets[0]),
|
||||
wTourUtils.clickOnText(snippets[0], 'h1', 'top'),
|
||||
wTourUtils.goBackToBlocks(),
|
||||
|
||||
@@ -39,6 +39,7 @@ const snippets = [
|
||||
];
|
||||
|
||||
wTourUtils.registerThemeHomepageTour("clean_tour", [
|
||||
wTourUtils.assertCssVariable('--color-palettes-name', '"clean-1"'),
|
||||
wTourUtils.dragNDrop(snippets[0]),
|
||||
wTourUtils.clickOnText(snippets[0], 'h1'),
|
||||
wTourUtils.goBackToBlocks(),
|
||||
|
||||
@@ -31,6 +31,7 @@ const snippets = [
|
||||
|
||||
|
||||
wTourUtils.registerThemeHomepageTour("cobalt_tour", [
|
||||
wTourUtils.assertCssVariable('--color-palettes-name', '"cobalt-1"'),
|
||||
wTourUtils.dragNDrop(snippets[0]),
|
||||
wTourUtils.clickOnText(snippets[0], 'h1', 'top'),
|
||||
wTourUtils.goBackToBlocks(),
|
||||
@@ -41,5 +42,4 @@ wTourUtils.registerThemeHomepageTour("cobalt_tour", [
|
||||
|
||||
wTourUtils.dragNDrop(snippets[4]),
|
||||
wTourUtils.dragNDrop(snippets[5]),
|
||||
|
||||
]);
|
||||
|
||||
@@ -31,6 +31,7 @@ const snippets = [
|
||||
];
|
||||
|
||||
wTourUtils.registerThemeHomepageTour("enark_tour", [
|
||||
wTourUtils.assertCssVariable('--color-palettes-name', '"enark-1"'),
|
||||
wTourUtils.dragNDrop(snippets[0]),
|
||||
wTourUtils.clickOnText(snippets[0], 'h1'),
|
||||
wTourUtils.goBackToBlocks(),
|
||||
|
||||
@@ -28,6 +28,7 @@ const snippets = [
|
||||
|
||||
|
||||
wTourUtils.registerThemeHomepageTour("graphene_tour", [
|
||||
wTourUtils.assertCssVariable('--color-palettes-name', '"graphene-1"'),
|
||||
wTourUtils.dragNDrop(snippets[0]),
|
||||
wTourUtils.clickOnText(snippets[0], 'h1', 'top'),
|
||||
wTourUtils.goBackToBlocks('left'),
|
||||
|
||||
@@ -30,6 +30,7 @@ const snippets = [
|
||||
];
|
||||
|
||||
wTourUtils.registerThemeHomepageTour("kea_tour", [
|
||||
wTourUtils.assertCssVariable('--color-palettes-name', '"bewise-2"'),
|
||||
wTourUtils.dragNDrop(snippets[0]),
|
||||
wTourUtils.clickOnText(snippets[0], 'h1'),
|
||||
wTourUtils.goBackToBlocks(),
|
||||
|
||||
@@ -26,6 +26,7 @@ const snippets = [
|
||||
];
|
||||
|
||||
wTourUtils.registerThemeHomepageTour("kiddo_tour", [
|
||||
wTourUtils.assertCssVariable('--color-palettes-name', '"default-16"'),
|
||||
wTourUtils.dragNDrop(snippets[0]),
|
||||
wTourUtils.clickOnText(snippets[0], 'h1'),
|
||||
wTourUtils.goBackToBlocks(),
|
||||
|
||||
@@ -26,6 +26,7 @@ const snippets = [
|
||||
];
|
||||
|
||||
wTourUtils.registerThemeHomepageTour("loftspace_tour", [
|
||||
wTourUtils.assertCssVariable('--color-palettes-name', '"graphene-2"'),
|
||||
wTourUtils.dragNDrop(snippets[0]),
|
||||
wTourUtils.clickOnText(snippets[0], 'h1'),
|
||||
wTourUtils.goBackToBlocks(),
|
||||
|
||||
@@ -38,6 +38,7 @@ const snippets = [
|
||||
];
|
||||
|
||||
wTourUtils.registerThemeHomepageTour("monglia_tour", [
|
||||
wTourUtils.assertCssVariable('--color-palettes-name', '"monglia-1"'),
|
||||
wTourUtils.dragNDrop(snippets[0]),
|
||||
wTourUtils.clickOnText(snippets[0], 'h1', 'top'),
|
||||
wTourUtils.goBackToBlocks(),
|
||||
|
||||
@@ -30,6 +30,7 @@ const snippets = [
|
||||
];
|
||||
|
||||
wTourUtils.registerThemeHomepageTour("nano_tour", [
|
||||
wTourUtils.assertCssVariable('--color-palettes-name', '"nano-1"'),
|
||||
wTourUtils.dragNDrop(snippets[0]),
|
||||
wTourUtils.clickOnText(snippets[0], 'h1', 'top'),
|
||||
wTourUtils.goBackToBlocks(),
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -35,6 +35,7 @@ const snippets = [
|
||||
];
|
||||
|
||||
wTourUtils.registerThemeHomepageTour("odoo_experts_tour", [
|
||||
wTourUtils.assertCssVariable('--color-palettes-name', '"odoo-experts-1"'),
|
||||
wTourUtils.dragNDrop(snippets[0]),
|
||||
wTourUtils.dragNDrop(snippets[1]),
|
||||
wTourUtils.dragNDrop(snippets[2]),
|
||||
|
||||
@@ -31,6 +31,7 @@ const snippets = [
|
||||
];
|
||||
|
||||
wTourUtils.registerThemeHomepageTour("orchid_tour", [
|
||||
wTourUtils.assertCssVariable('--color-palettes-name', '"orchid-7"'),
|
||||
wTourUtils.dragNDrop(snippets[0]),
|
||||
wTourUtils.clickOnText(snippets[0], 'h1'),
|
||||
wTourUtils.goBackToBlocks(),
|
||||
|
||||
@@ -31,6 +31,7 @@ const snippets = [
|
||||
|
||||
|
||||
wTourUtils.registerThemeHomepageTour("paptic_tour", [
|
||||
wTourUtils.assertCssVariable('--color-palettes-name', '"paptic-1"'),
|
||||
wTourUtils.dragNDrop(snippets[0], 'top'),
|
||||
wTourUtils.clickOnText(snippets[0], 'h1', 'top'),
|
||||
wTourUtils.goBackToBlocks(),
|
||||
|
||||
@@ -47,6 +47,7 @@ const snippets = [
|
||||
];
|
||||
|
||||
wTourUtils.registerThemeHomepageTour("real_estate_tour", [
|
||||
wTourUtils.assertCssVariable('--color-palettes-name', '"real-estate-4"'),
|
||||
wTourUtils.dragNDrop(snippets[0]),
|
||||
wTourUtils.clickOnText(snippets[0], 'h1'),
|
||||
wTourUtils.goBackToBlocks(),
|
||||
|
||||
@@ -26,6 +26,7 @@ const snippets = [
|
||||
];
|
||||
|
||||
wTourUtils.registerThemeHomepageTour("treehouse_tour", [
|
||||
wTourUtils.assertCssVariable('--color-palettes-name', '"treehouse-1"'),
|
||||
wTourUtils.dragNDrop(snippets[0]),
|
||||
wTourUtils.clickOnText(snippets[0], 'h1', 'top'),
|
||||
wTourUtils.goBackToBlocks(),
|
||||
|
||||
@@ -31,6 +31,7 @@ const snippets = [
|
||||
];
|
||||
|
||||
wTourUtils.registerThemeHomepageTour("vehicle_tour", [
|
||||
wTourUtils.assertCssVariable('--color-palettes-name', '"vehicle-1"'),
|
||||
wTourUtils.dragNDrop(snippets[0], 'top'),
|
||||
wTourUtils.clickOnText(snippets[0], 'h1', 'top'),
|
||||
wTourUtils.goBackToBlocks(),
|
||||
|
||||
@@ -30,6 +30,7 @@ const snippets = [
|
||||
];
|
||||
|
||||
wTourUtils.registerThemeHomepageTour("yes_tour", [
|
||||
wTourUtils.assertCssVariable('--color-palettes-name', '"yes-3"'),
|
||||
wTourUtils.dragNDrop(snippets[0]),
|
||||
wTourUtils.dragNDrop(snippets[1]),
|
||||
wTourUtils.clickOnText(snippets[1], 'h1'),
|
||||
|
||||
@@ -30,6 +30,7 @@ const snippets = [
|
||||
];
|
||||
|
||||
wTourUtils.registerThemeHomepageTour("zap_tour", [
|
||||
wTourUtils.assertCssVariable('--color-palettes-name', '"zap-1"'),
|
||||
wTourUtils.dragNDrop(snippets[0]),
|
||||
wTourUtils.clickOnText(snippets[0], 'h1', 'top'),
|
||||
wTourUtils.goBackToBlocks(),
|
||||
|
||||
Reference in New Issue
Block a user