Skip to content
Snippets Groups Projects
Commit 73eafc8d authored by Jacky (trj)'s avatar Jacky (trj)
Browse files

[FIX] pos_coupon: test randomly failing on runbot


It seems that the `test_pos_coupon_tour_max_amount` randomly fails on runbot
(we're guessing it fails because of the `NumberBuffer` when multiple tests
are ran). A workaround has been found which does not use the numpad during the tour

closes odoo/odoo#100128

Signed-off-by: default avatarMasereel Pierre <pim@odoo.com>
parent 6c444197
Branches
Tags
No related merge requests found
......@@ -13,14 +13,14 @@ odoo.define('pos_coupon.tour.pos_coupon3', function (require) {
ProductScreen.do.confirmOpeningPopup();
ProductScreen.do.clickHomeCategory();
ProductScreen.exec.addOrderline('Promo Product', '1');
ProductScreen.do.clickDisplayedProduct('Promo Product');
PosCoupon.check.orderTotalIs('34.50');
ProductScreen.exec.addOrderline('Product B', '1');
ProductScreen.do.clickDisplayedProduct('Product B');
PosCoupon.check.hasRewardLine('100.0% discount on products', '25.00');
ProductScreen.exec.addOrderline('Product A', '1');
ProductScreen.do.clickDisplayedProduct('Product A');
PosCoupon.check.hasRewardLine('100.0% discount on products', '15.00');
PosCoupon.check.orderTotalIs('34.50');
ProductScreen.exec.addOrderline('Product A', '2');
ProductScreen.do.clickDisplayedProduct('Product A');
PosCoupon.check.hasRewardLine('100.0% discount on products', '21.82');
PosCoupon.check.hasRewardLine('100.0% discount on products', '18.18');
PosCoupon.check.orderTotalIs('49.50');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment