| 1 | import * as ProductScreen from "@point_of_sale/../tests/pos/tours/utils/product_screen_util"; |
| 2 | import * as PaymentScreen from "@point_of_sale/../tests/pos/tours/utils/payment_screen_util"; |
| 3 | |
| 4 | export function checkSimplifiedInvoiceNumber(number) { |
| 5 | return [ |
| 6 | { |
| 7 | content: "verify that the simplified invoice number appears correctly on the receipt", |
| 8 | trigger: `.receipt-screen .simplified-invoice-number:contains('${number}')`, |
| 9 | }, |
| 10 | ]; |
| 11 | } |
| 12 | |
| 13 | export function pay() { |
| 14 | return [ |
| 15 | ...ProductScreen.clickPayButton(), |
| 16 | ...PaymentScreen.clickPaymentMethod("Bank"), |
| 17 | ...PaymentScreen.clickValidate(), |
| 18 | ]; |
| 19 | } |
| 20 | |
| 21 | export function checkCompanyState(state) { |
| 22 | return [ |
| 23 | { |
| 24 | content: "verify that the company state is on the receipt", |
| 25 | trigger: `.pos-receipt-container div:contains('(${state})')`, |
| 26 | }, |
| 27 | ]; |
| 28 | } |