| 1 |
import * as ProductScreen from "@point_of_sale/../tests/pos/tours/utils/product_screen_util"; |
| 2 |
import * as PaymentScreenPos from "@point_of_sale/../tests/pos/tours/utils/payment_screen_util"; |
| 3 |
import * as PaymentScreenViva from "@pos_viva_com/../tests/tours/utils/payment_screen_viva_util"; |
| 4 |
import * as Chrome from "@point_of_sale/../tests/pos/tours/utils/chrome_util"; |
| 5 |
import * as Dialog from "@point_of_sale/../tests/generic_helpers/dialog_util"; |
| 6 |
const PaymentScreen = { ...PaymentScreenPos, ...PaymentScreenViva }; |
| 7 |
import { registry } from "@web/core/registry"; |
| 8 |
|
| 9 |
registry.category("web_tour.tours").add("VivaComTour", { |
| 10 |
steps: () => |
| 11 |
[ |
| 12 |
Chrome.startPoS(), |
| 13 |
Dialog.confirm("Open Register"), |
| 14 |
ProductScreen.addOrderline("Desk Pad", "1", "5.1", "5.1"), |
| 15 |
ProductScreen.clickPayButton(), |
| 16 |
PaymentScreen.isShown(), |
| 17 |
PaymentScreen.clickPaymentMethod("Viva"), |
| 18 |
PaymentScreen.isShown(), |
| 19 |
].flat(), |
| 20 |
}); |