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#970
X-original-commit: dddd841c9b
Related: odoo/odoo#182031
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
@@ -37,12 +37,12 @@ const snippets = [
|
||||
|
||||
wTourUtils.registerThemeHomepageTour("yes_tour", () => [
|
||||
wTourUtils.assertCssVariable('--color-palettes-name', '"yes-3"'),
|
||||
...wTourUtils.dragNDrop(snippets[0]),
|
||||
...wTourUtils.dragNDrop(snippets[1]),
|
||||
...wTourUtils.insertSnippet(snippets[0]),
|
||||
...wTourUtils.insertSnippet(snippets[1]),
|
||||
...wTourUtils.clickOnText(snippets[1], 'h2'),
|
||||
wTourUtils.goBackToBlocks(),
|
||||
...wTourUtils.dragNDrop(snippets[2]),
|
||||
...wTourUtils.dragNDrop(snippets[3]),
|
||||
...wTourUtils.dragNDrop(snippets[4]),
|
||||
...wTourUtils.dragNDrop(snippets[5]),
|
||||
...wTourUtils.insertSnippet(snippets[2]),
|
||||
...wTourUtils.insertSnippet(snippets[3]),
|
||||
...wTourUtils.insertSnippet(snippets[4]),
|
||||
...wTourUtils.insertSnippet(snippets[5]),
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user