mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
a63e21e41a
*: artists, avantgarde, aviato, buzzy, orchid, paptic, real_estate, treehouse, zap This commit aims to adapt tests within each themes that uses the `s_three_columns` snippet. As we introduce the `Columns` category within the snippet modal, we are moving the `s_three_columns` from the `Content` category to the `Columns` one. This implies an adaptation of the tests where the `s_three_columns` was defined as part of the `Content` category. task-4119460 follow-up of task-3919405 closes odoo/design-themes#872 Related: odoo/odoo#176889 Signed-off-by: Robin Lejeune (role) <role@odoo.com>
50 lines
1.2 KiB
JavaScript
50 lines
1.2 KiB
JavaScript
/** @odoo-module */
|
|
|
|
import wTourUtils from '@website/js/tours/tour_utils';
|
|
|
|
const snippets = [
|
|
{
|
|
id: 's_cover',
|
|
name: 'Cover',
|
|
groupName: "Intro",
|
|
},
|
|
{
|
|
id: 's_image_text',
|
|
name: 'Image - Text',
|
|
groupName: "Content",
|
|
},
|
|
{
|
|
id: 's_references',
|
|
name: 'References',
|
|
groupName: "People",
|
|
},
|
|
{
|
|
id: 's_three_columns',
|
|
name: 'Columns',
|
|
groupName: "Columns",
|
|
},
|
|
{
|
|
id: 's_comparisons',
|
|
name: 'Comparisons',
|
|
groupName: "Content",
|
|
},
|
|
{
|
|
id: 's_call_to_action',
|
|
name: 'Call to Action',
|
|
groupName: "Content",
|
|
},
|
|
];
|
|
|
|
|
|
wTourUtils.registerThemeHomepageTour("paptic_tour", () => [
|
|
wTourUtils.assertCssVariable('--color-palettes-name', '"paptic-1"'),
|
|
...wTourUtils.dragNDrop(snippets[0], 'top'),
|
|
...wTourUtils.clickOnText(snippets[0], 'h1', 'top'),
|
|
wTourUtils.goBackToBlocks(),
|
|
...wTourUtils.dragNDrop(snippets[1], 'top'),
|
|
...wTourUtils.dragNDrop(snippets[2], 'top'),
|
|
...wTourUtils.dragNDrop(snippets[3], 'top'),
|
|
...wTourUtils.dragNDrop(snippets[4], 'top'),
|
|
...wTourUtils.dragNDrop(snippets[5], 'top'),
|
|
]);
|