Debian Codegraph @

addons/sale_project/static/tests/tours/project_tour.js

raw symbols SCIP
1 /**
2 * Add custom step to check allow_billable during project creation
3 * to be able to set a partner on project/tasks.
4 */
5 import { registry } from "@web/core/registry";
6 import "@project/../tests/tours/project_tour";
7 import { patch } from "@web/core/utils/patch";
8
9 patch(registry.category("web_tour.tours").get("project_test_tour"), {
10 steps() {
11 const originalSteps = super.steps();
12 const projectCreationStepIndex = originalSteps.findIndex(
13 (step) => step.id === "project_creation"
14 );
15 originalSteps.splice(projectCreationStepIndex, 0, {
16 trigger: "div[name='allow_billable'] input",
17 run: "edit Test",
18 });
19
20 return originalSteps;
21 },
22 });