mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[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 odoo/design-themes#1069
X-original-commit: a3eb65d3ea
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
@@ -5,8 +5,8 @@ import { registry } from "@web/core/registry";
|
|||||||
registry.category("web_tour.tours").add("website_theme_preview", {
|
registry.category("web_tour.tours").add("website_theme_preview", {
|
||||||
test: true,
|
test: true,
|
||||||
url: "/web#action=website.action_website_configuration",
|
url: "/web#action=website.action_website_configuration",
|
||||||
},
|
steps: () => [
|
||||||
[{
|
{
|
||||||
content: "Click on create new website",
|
content: "Click on create new website",
|
||||||
trigger: 'button[name="action_website_create_new"]',
|
trigger: 'button[name="action_website_create_new"]',
|
||||||
run: "click",
|
run: "click",
|
||||||
@@ -44,4 +44,4 @@ registry.category("web_tour.tours").add("website_theme_preview", {
|
|||||||
content: "Check that the desktop view is active",
|
content: "Check that the desktop view is active",
|
||||||
trigger: ".o_view_form_theme_preview_controller .o_field_iframe > div:not(.is_mobile):visible",
|
trigger: ".o_view_form_theme_preview_controller .o_field_iframe > div:not(.is_mobile):visible",
|
||||||
run: () => null, // it's a check
|
run: () => null, // it's a check
|
||||||
}]);
|
}]});
|
||||||
|
|||||||
Reference in New Issue
Block a user