[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
@@ -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(),
+1
View File
@@ -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'),
+1
View File
@@ -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(),
+1
View File
@@ -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(),
+1
View File
@@ -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(),
+1
View File
@@ -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(),
+1
View File
@@ -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(),
+1
View File
@@ -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(),
+1
View File
@@ -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(),
+1
View File
@@ -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(),
+1 -1
View File
@@ -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]),
]);
+1
View File
@@ -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(),
+1
View File
@@ -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'),
+1
View File
@@ -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(),
+1
View File
@@ -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(),
+1
View File
@@ -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(),
+1
View File
@@ -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(),
+1
View File
@@ -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(),
+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(),
+1
View File
@@ -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]),
+1
View File
@@ -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(),
+1
View File
@@ -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(),
+1
View File
@@ -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(),
+1
View File
@@ -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(),
+1
View File
@@ -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(),
+1
View File
@@ -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'),
+1
View File
@@ -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(),