| 1 |
import * as Chrome from "@point_of_sale/../tests/pos/tours/utils/chrome_util"; |
| 2 |
import * as ReceiptScreen from "@point_of_sale/../tests/pos/tours/utils/receipt_screen_util"; |
| 3 |
import * as PaymentScreen from "@point_of_sale/../tests/pos/tours/utils/payment_screen_util"; |
| 4 |
import * as ProductScreen from "@point_of_sale/../tests/pos/tours/utils/product_screen_util"; |
| 5 |
import * as Dialog from "@point_of_sale/../tests/generic_helpers/dialog_util"; |
| 6 |
import { registry } from "@web/core/registry"; |
| 7 |
|
| 8 |
registry.category("web_tour.tours").add("PosARBaseFlow", { |
| 9 |
steps: () => |
| 10 |
[ |
| 11 |
|
| 12 |
Chrome.startPoS(), |
| 13 |
Dialog.confirm("Open Register"), |
| 14 |
ProductScreen.clickDisplayedProduct("A test product"), |
| 15 |
ProductScreen.clickPayButton(), |
| 16 |
PaymentScreen.clickPaymentMethod("Cash"), |
| 17 |
PaymentScreen.clickValidate(), |
| 18 |
ReceiptScreen.isShown(), |
| 19 |
ReceiptScreen.clickNextOrder(), |
| 20 |
].flat(), |
| 21 |
}); |