Skip to content

Commit fa0c0d2

Browse files
committed
[FIX] theme_test_custo: prevent failing test_website_theme_preview tour
When running the test test_website_theme_preview, we have the following error: `tour.steps has to be a function that returns TourStep[]` runbot-111646 runbot-163139 closes #1069 X-original-commit: a3eb65d Signed-off-by: Quentin Smetz (qsm) <[email protected]>
1 parent 6d4a180 commit fa0c0d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

theme_test_custo/static/tests/tours/website_theme_preview.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { registry } from "@web/core/registry";
55
registry.category("web_tour.tours").add("website_theme_preview", {
66
test: true,
77
url: "/web#action=website.action_website_configuration",
8-
},
9-
[{
8+
steps: () => [
9+
{
1010
content: "Click on create new website",
1111
trigger: 'button[name="action_website_create_new"]',
1212
run: "click",
@@ -44,4 +44,4 @@ registry.category("web_tour.tours").add("website_theme_preview", {
4444
content: "Check that the desktop view is active",
4545
trigger: ".o_view_form_theme_preview_controller .o_field_iframe > div:not(.is_mobile):visible",
4646
run: () => null, // it's a check
47-
}]);
47+
}]});

0 commit comments

Comments
 (0)