Debian Codegraph @

addons/repair/static/tests/tours/repair_order.js

raw
1 import { registry } from "@web/core/registry";
2
3 registry.category("web_tour.tours").add('test_repair_without_product_in_parts', {
4
5 steps: () => [
6 {
7 content: "Click product_id field",
8 trigger: "div[name='move_ids'] .o_data_row td.o_data_cell[name=product_id]",
9 run: "click",
10 },
11 {
12 content: "Unset the product",
13 trigger: "div[name=move_ids] div[name=product_id] input",
14 run: "edit",
15 },
16 {
17 content: "Click partner field",
18 trigger: ".o_field_widget[name=partner_id] input",
19 run: "click",
20 },
21 // Note: Selecting the partner is only to trigger the compute;
22 // this could be done by modifying any other field.
23 {
24 content: "Select partner",
25 trigger: ".ui-menu-item > a:contains('A Partner')",
26 run: "click",
27 },
28 {
29 content: "Click the product field",
30 trigger: "div[name=move_ids] .o_field_widget[name=product_id] input",
31 run: "edit [1234] A Product",
32 },
33 {
34 content: "Select a product",
35 trigger:".ui-menu-item > a:contains('[1234] A Product')",
36 run: "click",
37 },
38 {
39 content: "Save the repair order",
40 trigger: ".o_form_button_save",
41 run: "click",
42 },
43 {
44 content: "wait for save completion",
45 trigger: ".o_form_saved",
46 },
47 ]});