Debian Codegraph @

addons/event_crm/static/tests/tours/event_question_answers_rule_creation_tour.js

raw
1 import { registry } from "@web/core/registry";
2 import { stepUtils } from "@web_tour/tour_utils";
3
4 registry.category("web_tour.tours").add("event_question_answers_rule_creation_tour", {
5 url: "/odoo",
6 steps: () => [
7 ...stepUtils.goToAppSteps("event.event_main_menu"),
8 {
9 content: "Click on the Configuration menu.",
10 trigger: 'button[data-menu-xmlid="event.menu_event_configuration"]',
11 run: "click",
12 },
13 {
14 content: "Go to the list of questions.",
15 trigger: 'a[data-menu-xmlid="event.event_question_menu"]',
16 run: "click",
17 },
18 {
19 content: "Go to the form of a specific question.",
20 trigger: 'td[name="title"]:contains("Question Test")',
21 run: "click",
22 },
23 {
24 content: "Click on the 'Add rule' button.",
25 trigger: 'tr:contains("Answer Test") button[name="action_add_rule_button"]',
26 run: "click",
27 },
28 {
29 content: "Edit the name of the rule.",
30 trigger: "[name=name] input",
31 run: "edit event_question_answer_rule",
32 },
33 {
34 content: "Save the rule creation form with pre-filled data, except for the name.",
35 trigger: '.modal:contains("Event lead rule") .o_form_button_save',
36 run: "click",
37 },
38 {
39 content: "Wait until the modal is closed",
40 trigger: "body:not(.modal-open)",
41 },
42 ],
43 });