Debian Codegraph @

addons/event_sale/static/tests/tours/event_configurator_ui.js

raw symbols SCIP
1 import { registry } from "@web/core/registry";
2 import { stepUtils } from "@web_tour/tour_utils";
3 import tourUtils from "@sale/js/tours/tour_utils";
4
5 registry.category("web_tour.tours").add("event_configurator_tour", {
6 url: "/odoo",
7 steps: () => [
8 ...stepUtils.goToAppSteps("sale.sale_menu_root", "Go to the Sales App"),
9 ...tourUtils.createNewSalesOrder(),
10 ...tourUtils.selectCustomer("Azure"),
11 ...tourUtils.addProduct("Event Registration"),
12 {
13 trigger: 'div[name="event_id"] input',
14 run: "click",
15 },
16 {
17 trigger: "ul.ui-autocomplete a:text(Design Fair Los Angeles)",
18 run: "click",
19 },
20 {
21 trigger: 'div[name="event_ticket_id"] input',
22 run: "click",
23 },
24 {
25 trigger: "ul.ui-autocomplete a:contains(VIP)",
26 run: "click",
27 },
28 {
29 trigger: ".modal .o_event_sale_js_event_configurator_ok",
30 run: "click",
31 },
32 {
33 content: "Wait the modal is closed",
34 trigger: "body:not(:has(.modal))",
35 },
36 ...tourUtils.clickSomewhereElse(),
37 tourUtils.editLineMatching("Event Registration", "VIP"),
38 tourUtils.editConfiguration(),
39 {
40 trigger: 'div[name="event_ticket_id"] input',
41 run: "click",
42 },
43 {
44 trigger: "ul.ui-autocomplete a:contains(Standard)",
45 run: "click",
46 },
47 {
48 trigger: ".modal .o_event_sale_js_event_configurator_ok",
49 run: "click",
50 },
51 {
52 content: "Wait the modal is closed",
53 trigger: "body:not(:has(.modal))",
54 },
55 ...tourUtils.clickSomewhereElse(),
56 tourUtils.checkSOLDescriptionContains("Event Registration", "Standard"),
57 ...stepUtils.saveForm(),
58 ],
59 });