Skip to content

Commit 59f35e4

Browse files
duau-odooqsm-odoo
authored andcommitted
[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]: odoo/odoo@9fe45e2 Related to opw-5020952 Related to opw-5040694 Part-of: #1132 Related: odoo/odoo#224076 Signed-off-by: Quentin Smetz (qsm) <[email protected]>
1 parent e50816f commit 59f35e4

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

theme_bookstore/static/src/js/tour.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ wTourUtils.registerThemeHomepageTour("bookstore_tour", () => [
4141
...wTourUtils.insertSnippet(snippets[3]),
4242
...wTourUtils.insertSnippet(snippets[4]),
4343
...wTourUtils.clickOnSnippet(snippets[4]),
44-
wTourUtils.changeOption('ContainerWidth', 'we-button-group.o_we_user_value_widget', _t('width')),
44+
wTourUtils.changeOption('Box Call to Action', 'setContainerWidth', _t('width')),
4545
wTourUtils.goBackToBlocks(),
4646
]);

theme_kiddo/static/src/js/tour.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ wTourUtils.registerThemeHomepageTour("kiddo_tour", () => [
3939
...wTourUtils.insertSnippet(snippets[2]),
4040
...wTourUtils.insertSnippet(snippets[3]),
4141
...wTourUtils.clickOnSnippet(snippets[3]),
42-
wTourUtils.changeOption('ContainerWidth', 'we-button-group.o_we_user_value_widget', _t('width')),
42+
wTourUtils.changeOption('Items', 'setContainerWidth', _t('width')),
4343
wTourUtils.goBackToBlocks(),
4444
...wTourUtils.insertSnippet(snippets[4]),
4545
]);

theme_notes/static/src/js/tour.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ wTourUtils.registerThemeHomepageTour("notes_tour", () => [
5454
...wTourUtils.insertSnippet(snippets[1]),
5555
...wTourUtils.insertSnippet(snippets[2]),
5656
...wTourUtils.clickOnSnippet(snippets[2]),
57-
wTourUtils.changeOption('ContainerWidth', 'we-button-group.o_we_user_value_widget', _t('width')),
57+
wTourUtils.changeOption('Columns', 'setContainerWidth', _t('width')),
5858
wTourUtils.goBackToBlocks(),
5959
...wTourUtils.insertSnippet(snippets[3]),
6060
...wTourUtils.insertSnippet(snippets[4]),

theme_odoo_experts/static/src/js/tour.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ wTourUtils.registerThemeHomepageTour("odoo_experts_tour", () => [
5252
...wTourUtils.insertSnippet(snippets[4]),
5353
...wTourUtils.insertSnippet(snippets[5]),
5454
...wTourUtils.clickOnSnippet(snippets[5], 'top'),
55-
wTourUtils.changeOption('ColoredLevelBackground', 'we-button[data-toggle-bg-shape]', _t('Background Shape')),
56-
wTourUtils.selectNested('we-select-page', 'BackgroundShape', ':not(.o_we_pager_controls)', _t('Background Shape')),
55+
wTourUtils.changeOption('FAQ Block', 'toggleBgShape', _t('Background Shape')),
56+
wTourUtils.clickOnElement("shape", ".builder_select_page [data-action-id='setBackgroundShape']"),
5757
wTourUtils.goBackToBlocks(),
5858
...wTourUtils.insertSnippet(snippets[6]),
5959
]);

0 commit comments

Comments
 (0)