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 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 { registry } from "@web/core/registry"; registry.category("web_tour.tours").add("test_sa_qr_is_shown", { steps: () => [ Chrome.startPoS(), Dialog.confirm("Open Register"), ProductScreen.addOrderline("Small Shelf", "1"), ProductScreen.clickPayButton(), PaymentScreen.clickPaymentMethod("Cash"), PaymentScreen.clickValidate(), { trigger: "#qrcode.pos-receipt-qrcode", content: "QR code should be visible on the receipt.", }, ].flat(), });