44 lines
1.2 KiB
JavaScript
44 lines
1.2 KiB
JavaScript
/** @odoo-module **/
|
|
|
|
import { registry } from "@web/core/registry";
|
|
|
|
registry.category("web_tour.tours").add('skip_website_configurator', {
|
|
url: '/odoo/action-website.action_website_configuration',
|
|
steps: () => [
|
|
{
|
|
content: "create a new website",
|
|
trigger: 'button[name="action_website_create_new"]',
|
|
run: "click",
|
|
},
|
|
{
|
|
content: "insert website name",
|
|
trigger: 'div[name="name"] input',
|
|
run: "edit Website EN",
|
|
},
|
|
{
|
|
content: "validate the website creation modal",
|
|
trigger: '.modal button.btn-primary',
|
|
run: "click",
|
|
},
|
|
{
|
|
content: "skip configurator",
|
|
// This trigger targets the skip button, it doesn't have a more
|
|
// explicit class or ID.
|
|
trigger: '.o_configurator_container .container-fluid .btn.btn-link',
|
|
run: "click",
|
|
},
|
|
{
|
|
content: "Install a theme",
|
|
trigger: ".o_theme_preview_top",
|
|
run: "hover && click button[name=button_choose_theme]",
|
|
},
|
|
{
|
|
trigger: ".o_menu_systray .o_user_menu",
|
|
},
|
|
{
|
|
content: "Check that the homepage is loaded",
|
|
trigger: ".o_website_preview[data-view-xmlid='website.homepage']",
|
|
timeout: 30000,
|
|
},
|
|
]});
|