| 1 |
|
| 2 |
|
| 3 |
|
| 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 |
}); |