mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[FIX] theme_*: rename the dragNDrop function to insertSnippet
This commit replaces the "dragNDrop" function used in theme tours with "insertSnippet" because the function name has changed. Now, users no longer need to drag and drop categories onto the page from the snippet menu. Instead, they now need to click on them. task-4072655 closes odoo/design-themes#916 Related: odoo/odoo#180471 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
@@ -48,17 +48,17 @@ const snippets = [
|
||||
|
||||
wTourUtils.registerThemeHomepageTour("notes_tour", () => [
|
||||
wTourUtils.assertCssVariable('--color-palettes-name', '"default-19"'),
|
||||
...wTourUtils.dragNDrop(snippets[0]),
|
||||
...wTourUtils.insertSnippet(snippets[0]),
|
||||
...wTourUtils.clickOnText(snippets[0], 'h2'),
|
||||
wTourUtils.goBackToBlocks(),
|
||||
...wTourUtils.dragNDrop(snippets[1]),
|
||||
...wTourUtils.dragNDrop(snippets[2]),
|
||||
...wTourUtils.insertSnippet(snippets[1]),
|
||||
...wTourUtils.insertSnippet(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]),
|
||||
...wTourUtils.dragNDrop(snippets[6]),
|
||||
...wTourUtils.dragNDrop(snippets[7]),
|
||||
...wTourUtils.insertSnippet(snippets[3]),
|
||||
...wTourUtils.insertSnippet(snippets[4]),
|
||||
...wTourUtils.insertSnippet(snippets[5]),
|
||||
...wTourUtils.insertSnippet(snippets[6]),
|
||||
...wTourUtils.insertSnippet(snippets[7]),
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user