Skip to content
Snippets Groups Projects
Commit 80ebddd2 authored by Loukas Wets (lowe)'s avatar Loukas Wets (lowe)
Browse files

[FIX] point_of_sale: random error when running PaymentScreenTotalDueWithOverPayment


PaymentScreenTotalDueWithOverPayment result to random runbot error because the
test is performing a series of steps that clicks the validate button which will
randomly result to going to the ReceiptScreen which is not the goal of the test.

In this commit, we replace the use of `pay` method with a more granular series
of steps to make sure that the test doesn't click the validate button and will
properly make the succeeding checks on the amounts in the PaymentScreen.

closes odoo/odoo#117501

Signed-off-by: default avatarJoseph Caburnay (jcb) <jcb@odoo.com>
parent dd44e1f6
No related branches found
No related tags found
No related merge requests found
......@@ -195,12 +195,12 @@ odoo.define('point_of_sale.tour.PaymentScreen', function (require) {
ProductScreen.do.clickPayButton();
PaymentScreen.check.totalIs('1.95');
PaymentScreen.exec.pay('Cash', '5');
PaymentScreen.do.clickPaymentMethod('Cash');
PaymentScreen.do.pressNumpad('5');
PaymentScreen.check.remainingIs('0.0');
PaymentScreen.check.changeIs('3.05');
PaymentScreen.check.totalDueIs('1.95');
Chrome.do.clickTicketButton();
Tour.register('PaymentScreenTotalDueWithOverPayment', { test: true, url: '/pos/ui' }, getSteps());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment