aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-09-21 11:11:15 -0700
committerAdam Soltys <[email protected]>2026-09-21 11:11:15 -0700
commit792b15ffbb90b82f1e6c07ce5430bae18f239f1e (patch)
tree3a03290d2161374414c2523388ef959766e93880
parent811abc3c7cc5706d3a0bca9eece36e947e6ea566 (diff)
downloadcoinosv3-792b15ffbb90b82f1e6c07ce5430bae18f239f1e.tar.gz
coinosv3-792b15ffbb90b82f1e6c07ce5430bae18f239f1e.zip
Point of sale test: the amount's rendered size is checked.
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01Tmfg8k5f3TbNJS34qiqHAp
-rw-r--r--tools/pos-test.js1
1 files changed, 1 insertions, 0 deletions
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);