forked from Mapan/odoo17e
28 lines
1.1 KiB
JavaScript
28 lines
1.1 KiB
JavaScript
/** @odoo-module */
|
|
|
|
import * as ProductScreen from "@point_of_sale/../tests/tours/helpers/ProductScreenTourMethods";
|
|
import * as PaymentScreen from "@point_of_sale/../tests/tours/helpers/PaymentScreenTourMethods";
|
|
import * as ReceiptScreen from "@point_of_sale/../tests/tours/helpers/ReceiptScreenTourMethods";
|
|
import { registry } from "@web/core/registry";
|
|
|
|
registry.category("web_tour.tours").add("FixedTaxNegativeQty", {
|
|
test: true,
|
|
url: "/pos/ui",
|
|
steps: () =>
|
|
[
|
|
ProductScreen.clickHomeCategory(),
|
|
|
|
ProductScreen.clickDisplayedProduct("Zero Amount Product"),
|
|
ProductScreen.selectedOrderlineHas("Zero Amount Product", "1.0", "1.0"),
|
|
ProductScreen.pressNumpad("+/-", "1"),
|
|
ProductScreen.selectedOrderlineHas("Zero Amount Product", "-1.0", "-1.0"),
|
|
|
|
ProductScreen.clickPayButton(),
|
|
PaymentScreen.clickPaymentMethod("Bank"),
|
|
PaymentScreen.remainingIs("0.00"),
|
|
PaymentScreen.clickValidate(),
|
|
|
|
ReceiptScreen.receiptIsThere(),
|
|
].flat(),
|
|
});
|