From 792b15ffbb90b82f1e6c07ce5430bae18f239f1e Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 21 Sep 2026 11:11:15 -0700 Subject: Point of sale test: the amount's rendered size is checked. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01Tmfg8k5f3TbNJS34qiqHAp --- tools/pos-test.js | 1 + 1 file changed, 1 insertion(+) (limited to 'tools') diff --git a/tools/pos-test.js b/tools/pos-test.js index c38c3ea..4882279 100644 --- a/tools/pos-test.js +++ b/tools/pos-test.js @@ -61,6 +61,7 @@ try { await page.waitForSelector('#closed'); await page.evaluate(() => test.open()); await pause(50); check('the point of sale opens on the amount screen', /Point of sale/.test(await text()) && !!(await page.$('.pos-amount'))); + check('the amount reads across a counter', await page.$eval('.pos-amount', (i) => parseFloat(getComputedStyle(i).fontSize)) >= 40); await click('Charge'); await pause(50); check('charging nothing asks for an amount', /Enter an amount first/.test(await text())); for (const k of ['1', '0', '0', '0']) await click(k); -- cgit v1.2.3