1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/point_of_sale/static/tests/tours/FixedPriceNegativeQty.tour.js
2024-12-10 09:04:09 +07:00

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(),
});