mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
f127ff3741
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>
47 lines
1.1 KiB
JavaScript
47 lines
1.1 KiB
JavaScript
/** @odoo-module */
|
|
|
|
import wTourUtils from 'website.tour_utils';
|
|
import { _t } from 'web.core';
|
|
|
|
const snippets = [
|
|
{
|
|
id: 's_carousel',
|
|
name: 'Carousel',
|
|
},
|
|
{
|
|
id: 's_masonry_block',
|
|
name: 'Masonry',
|
|
},
|
|
{
|
|
id: 's_text_image',
|
|
name: 'Text - Image',
|
|
},
|
|
{
|
|
id: 's_product_catalog',
|
|
name: 'Pricelist',
|
|
},
|
|
{
|
|
id: 's_media_list',
|
|
name: 'Media List',
|
|
},
|
|
{
|
|
id: 's_company_team',
|
|
name: 'Team',
|
|
},
|
|
];
|
|
|
|
wTourUtils.registerThemeHomepageTour("notes_tour", [
|
|
wTourUtils.assertCssVariable('--color-palettes-name', '"notes-1"'),
|
|
wTourUtils.dragNDrop(snippets[0]),
|
|
wTourUtils.clickOnText(snippets[0], 'h1'),
|
|
wTourUtils.goBackToBlocks(),
|
|
wTourUtils.dragNDrop(snippets[1]),
|
|
wTourUtils.dragNDrop(snippets[2]),
|
|
wTourUtils.clickOnSnippet(snippets[2]),
|
|
wTourUtils.changeOption('ContainerWidth', 'we-button-group.o_we_user_value_widget', _t('width')),
|
|
wTourUtils.goBackToBlocks(),
|
|
wTourUtils.dragNDrop(snippets[3]),
|
|
wTourUtils.dragNDrop(snippets[4]),
|
|
wTourUtils.dragNDrop(snippets[5]),
|
|
]);
|