This commit is contained in:
2026-11-08 20:08:53 +08:00
parent 7526a5fe4d
commit 9b924747c5
2692 changed files with 394867 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
import { registry } from "@web/core/registry";
import { patch } from "@web/core/utils/patch";
import "@website_helpdesk_knowledge/../tests/tours/helpdesk_knowledge_tour_portal";
patch(registry.category("web_tour.tours").get("access_helpdesk_article_portal_tour"), {
steps() {
const originalSteps = super.steps();
const nextStep = originalSteps.findIndex(
(step) => step.id === "menu_step",
);
return [
...originalSteps.slice(nextStep, 1),
{
content: "Ask AI",
trigger: "textarea[name='promptInput']",
run: "edit Article",
}, {
trigger: "button.ai_website_livechat_form_button",
run: "click",
},
...originalSteps.slice(5),
];
},
});