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