commit 232897189907cd3cfcdd2fa92c5d1ce02989c8ad
parent aabf83bdd9e21fda1e8e14cb2cd230d2fc8c88d2
Author: Christian Grothoff <christian@grothoff.org>
Date: Fri, 30 Oct 2026 10:35:11 +0100
use build-in unit, now that unit-existence is enforced
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/packages/taler-harness/src/integrationtests/test-merchant-webui-simple.ts b/packages/taler-harness/src/integrationtests/test-merchant-webui-simple.ts
@@ -735,7 +735,9 @@ async function testPosScreen(
product_id: "prod_pos_espresso",
description: "POS Swiss Espresso",
price: "CHF:4.50" as AmountString,
- unit: "cup",
+ // Builtin unit slug: the backend resolves a product's unit against the
+ // unit tables and answers 404 MERCHANT_GENERIC_UNIT_UNKNOWN otherwise.
+ unit: "Piece",
total_stock: -1,
categories: [beveragesId!],
},
@@ -746,7 +748,7 @@ async function testPosScreen(
product_id: "prod_pos_croissant",
description: "POS Artisan Croissant",
price: "CHF:3.50" as AmountString,
- unit: "piece",
+ unit: "Piece",
total_stock: -1,
},
);