[FIX] pos_sale: runbot error 45368 (PosSettleOrderNotGroupable tour)

In this commit, we fix the last step of the PosSettleOrderNotGroupable tour
which is deterministically failing in runbot.

closes odoo/odoo#143229

Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
This commit is contained in:
Joseph Caburnay
2023-11-24 16:22:04 +00:00
parent 79f6e17a48
commit 680eaeff50
@@ -417,9 +417,9 @@ export function checkOrderlinesNumber(number) {
return [
{
content: `check orderlines number`,
trigger: `.order .orderlines .orderline`,
trigger: `.order-container .orderline`,
run: () => {
const orderline_amount = $('.order .orderlines .orderline').length;
const orderline_amount = $(".order-container .orderline").length;
if (orderline_amount !== number) {
throw new Error(`Expected ${number} orderlines, got ${orderline_amount}`);
}