import { registry } from "@web/core/registry"; import * as Dialog from "@point_of_sale/../tests/generic_helpers/dialog_util"; import * as Chrome from "@point_of_sale/../tests/pos/tours/utils/chrome_util"; import * as TicketScreen from "@point_of_sale/../tests/pos/tours/utils/ticket_screen_util"; import * as ProductScreen from "@point_of_sale/../tests/pos/tours/utils/product_screen_util"; import * as PaymentScreen from "@point_of_sale/../tests/pos/tours/utils/payment_screen_util"; import * as ReceiptScreen from "@point_of_sale/../tests/pos/tours/utils/receipt_screen_util"; registry.category("web_tour.tours").add("test_co_pos_refund", { steps: () => [ Chrome.startPoS(), Dialog.confirm("Open Register"), ProductScreen.clickDisplayedProduct("Whiteboard Pen"), ProductScreen.clickPayButton(), PaymentScreen.clickPaymentMethod("Bank"), PaymentScreen.clickValidate(), Chrome.clickOrders(), TicketScreen.selectFilter("Paid"), TicketScreen.selectOrder("0001"), ProductScreen.clickNumpad("1"), TicketScreen.confirmRefund(), PaymentScreen.isShown(), PaymentScreen.clickPaymentMethod("Bank"), PaymentScreen.clickValidate(), ReceiptScreen.isShown(), ].flat(), });