mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
8b377af3a7
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>
45 lines
1000 B
JavaScript
45 lines
1000 B
JavaScript
odoo.define("theme_enark.tour.enark", function (require) {
|
|
"use strict";
|
|
|
|
const wTourUtils = require("website.tour_utils");
|
|
|
|
const snippets = [
|
|
{
|
|
id: 's_banner',
|
|
name: 'Banner',
|
|
},
|
|
{
|
|
id: 's_picture',
|
|
name: 'Picture',
|
|
},
|
|
{
|
|
id: 's_numbers',
|
|
name: 'Numbers',
|
|
},
|
|
{
|
|
id: 's_text_image',
|
|
name: 'Text - Image',
|
|
},
|
|
{
|
|
id: 's_image_wall',
|
|
name: 'Images Wall',
|
|
},
|
|
{
|
|
id: 's_call_to_action',
|
|
name: 'Call to Action',
|
|
},
|
|
];
|
|
|
|
wTourUtils.registerThemeHomepageTour("enark_tour", [
|
|
wTourUtils.assertCssVariable('--color-palettes-name', '"enark-1"'),
|
|
wTourUtils.dragNDrop(snippets[0]),
|
|
wTourUtils.clickOnText(snippets[0], 'h1'),
|
|
wTourUtils.goBackToBlocks(),
|
|
wTourUtils.dragNDrop(snippets[1]),
|
|
wTourUtils.dragNDrop(snippets[2]),
|
|
wTourUtils.dragNDrop(snippets[3]),
|
|
wTourUtils.dragNDrop(snippets[4]),
|
|
wTourUtils.dragNDrop(snippets[5]),
|
|
]);
|
|
});
|