Debian Codegraph @

addons/pos_mrp/static/tests/tours/pos_mrp_tour.js

raw
1 /** @odoo-module */
2
3 import * as ProductScreen from "@point_of_sale/../tests/pos/tours/utils/product_screen_util";
4 import * as PaymentScreen from "@point_of_sale/../tests/pos/tours/utils/payment_screen_util";
5 import * as ReceiptScreen from "@point_of_sale/../tests/pos/tours/utils/receipt_screen_util";
6 import * as Dialog from "@point_of_sale/../tests/generic_helpers/dialog_util";
7 import * as Chrome from "@point_of_sale/../tests/pos/tours/utils/chrome_util";
8 import { waitForLoading } from "@point_of_sale/../tests/pos/tours/utils/common";
9 import { registry } from "@web/core/registry";
10
11 registry.category("web_tour.tours").add("test_ship_later_kit_and_mto_manufactured_product", {
12 steps: () =>
13 [
14 waitForLoading(),
15 Chrome.startPoS(),
16 Dialog.confirm("Open Register"),
17 ProductScreen.clickInfoProduct("Finished", [Dialog.confirm("Close")]),
18 Dialog.isNot(),
19 ProductScreen.clickInfoProduct("Basic Kit", [Dialog.confirm("Close")]),
20 Dialog.isNot(),
21 ProductScreen.clickPartnerButton(),
22 ProductScreen.clickCustomer("AAAA Super Customer"),
23 ProductScreen.clickPayButton(),
24 PaymentScreen.clickPaymentMethod("Cash"),
25 PaymentScreen.clickShipLaterButton(),
26 PaymentScreen.shippingLaterHighlighted(),
27 PaymentScreen.clickValidate(),
28 ReceiptScreen.receiptIsThere(),
29 ].flat(),
30 });