mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[FIX] *: update tours to use new DOM structure
*: theme_bookstore, theme_kiddo, theme_notes, theme_odoo_experts
DOM structure was modified in website refactor [1], those tours were
still using the former one because they were silently disabled during
the refactor. See community PR for details (which re-enables them).
[1]: https://github.com/odoo/odoo/commit/9fe45e2b7ddbbfd0445ffe25a859e67a316d02b2
Related to opw-5020952
Related to opw-5040694
X-original-commit: 59f35e4dde
Part-of: odoo/design-themes#1141
Related: odoo/odoo#225809
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Signed-off-by: Augustin Dupin (duau) <duau@odoo.com>
This commit is contained in:
committed by
qsm-odoo
parent
53cbeade36
commit
7fc9343344
@@ -41,6 +41,6 @@ wTourUtils.registerThemeHomepageTour("bookstore_tour", () => [
|
|||||||
...wTourUtils.insertSnippet(snippets[3]),
|
...wTourUtils.insertSnippet(snippets[3]),
|
||||||
...wTourUtils.insertSnippet(snippets[4]),
|
...wTourUtils.insertSnippet(snippets[4]),
|
||||||
...wTourUtils.clickOnSnippet(snippets[4]),
|
...wTourUtils.clickOnSnippet(snippets[4]),
|
||||||
wTourUtils.changeOption('ContainerWidth', 'we-button-group.o_we_user_value_widget', _t('width')),
|
wTourUtils.changeOption('Box Call to Action', 'setContainerWidth', _t('width')),
|
||||||
wTourUtils.goBackToBlocks(),
|
wTourUtils.goBackToBlocks(),
|
||||||
]);
|
]);
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ wTourUtils.registerThemeHomepageTour("kiddo_tour", () => [
|
|||||||
...wTourUtils.insertSnippet(snippets[2]),
|
...wTourUtils.insertSnippet(snippets[2]),
|
||||||
...wTourUtils.insertSnippet(snippets[3]),
|
...wTourUtils.insertSnippet(snippets[3]),
|
||||||
...wTourUtils.clickOnSnippet(snippets[3]),
|
...wTourUtils.clickOnSnippet(snippets[3]),
|
||||||
wTourUtils.changeOption('ContainerWidth', 'we-button-group.o_we_user_value_widget', _t('width')),
|
wTourUtils.changeOption('Items', 'setContainerWidth', _t('width')),
|
||||||
wTourUtils.goBackToBlocks(),
|
wTourUtils.goBackToBlocks(),
|
||||||
...wTourUtils.insertSnippet(snippets[4]),
|
...wTourUtils.insertSnippet(snippets[4]),
|
||||||
]);
|
]);
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ wTourUtils.registerThemeHomepageTour("notes_tour", () => [
|
|||||||
...wTourUtils.insertSnippet(snippets[1]),
|
...wTourUtils.insertSnippet(snippets[1]),
|
||||||
...wTourUtils.insertSnippet(snippets[2]),
|
...wTourUtils.insertSnippet(snippets[2]),
|
||||||
...wTourUtils.clickOnSnippet(snippets[2]),
|
...wTourUtils.clickOnSnippet(snippets[2]),
|
||||||
wTourUtils.changeOption('ContainerWidth', 'we-button-group.o_we_user_value_widget', _t('width')),
|
wTourUtils.changeOption('Columns', 'setContainerWidth', _t('width')),
|
||||||
wTourUtils.goBackToBlocks(),
|
wTourUtils.goBackToBlocks(),
|
||||||
...wTourUtils.insertSnippet(snippets[3]),
|
...wTourUtils.insertSnippet(snippets[3]),
|
||||||
...wTourUtils.insertSnippet(snippets[4]),
|
...wTourUtils.insertSnippet(snippets[4]),
|
||||||
|
|||||||
@@ -52,8 +52,8 @@ wTourUtils.registerThemeHomepageTour("odoo_experts_tour", () => [
|
|||||||
...wTourUtils.insertSnippet(snippets[4]),
|
...wTourUtils.insertSnippet(snippets[4]),
|
||||||
...wTourUtils.insertSnippet(snippets[5]),
|
...wTourUtils.insertSnippet(snippets[5]),
|
||||||
...wTourUtils.clickOnSnippet(snippets[5], 'top'),
|
...wTourUtils.clickOnSnippet(snippets[5], 'top'),
|
||||||
wTourUtils.changeOption('ColoredLevelBackground', 'we-button[data-toggle-bg-shape]', _t('Background Shape')),
|
wTourUtils.changeOption('FAQ Block', 'toggleBgShape', _t('Background Shape')),
|
||||||
wTourUtils.selectNested('we-select-page', 'BackgroundShape', ':not(.o_we_pager_controls)', _t('Background Shape')),
|
wTourUtils.clickOnElement("shape", ".builder_select_page [data-action-id='setBackgroundShape']"),
|
||||||
wTourUtils.goBackToBlocks(),
|
wTourUtils.goBackToBlocks(),
|
||||||
...wTourUtils.insertSnippet(snippets[6]),
|
...wTourUtils.insertSnippet(snippets[6]),
|
||||||
]);
|
]);
|
||||||
|
|||||||
Reference in New Issue
Block a user