Debian Codegraph @

addons/l10n_sa_pos/static/tests/tours/sa_pos_tour.js

raw
1 import * as Dialog from "@point_of_sale/../tests/generic_helpers/dialog_util";
2 import * as Chrome from "@point_of_sale/../tests/pos/tours/utils/chrome_util";
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 { registry } from "@web/core/registry";
6
7 registry.category("web_tour.tours").add("test_sa_qr_is_shown", {
8 steps: () =>
9 [
10 Chrome.startPoS(),
11 Dialog.confirm("Open Register"),
12 ProductScreen.addOrderline("Small Shelf", "1"),
13 ProductScreen.clickPayButton(),
14 PaymentScreen.clickPaymentMethod("Cash"),
15 PaymentScreen.clickValidate(),
16 {
17 trigger: "#qrcode.pos-receipt-qrcode",
18 content: "QR code should be visible on the receipt.",
19 },
20 ].flat(),
21 });