aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-10-07 13:39:15 -0700
committerAdam Soltys <[email protected]>2026-10-07 13:39:15 -0700
commitf21ebec84d3207ed7eab7d712315adc8ab706708 (patch)
tree5ba5b1caf8af10cefa33d09816c73241e72661bd /tools
parent9277ed5f287711b28ea5ca7ab86dfd659721a329 (diff)
downloadcoinosv3-f21ebec84d3207ed7eab7d712315adc8ab706708.tar.gz
coinosv3-f21ebec84d3207ed7eab7d712315adc8ab706708.zip
Desktop: Send opens with the cursor in the recipient field (once per visit, never off another field, never on phones); the amount field still takes it once a recipient resolves
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'tools')
-rw-r--r--tools/send-enter-keys-test.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/send-enter-keys-test.js b/tools/send-enter-keys-test.js
index 5022c39..67997c0 100644
--- a/tools/send-enter-keys-test.js
+++ b/tools/send-enter-keys-test.js
@@ -74,6 +74,9 @@ try {
console.log('[recipient: Enter picks the top suggestion]');
await page.evaluate(() => [...document.querySelectorAll('button')].find((b) => b.textContent.trim() === 'Send')?.click());
await page.waitForSelector('textarea.send-dest', { timeout: 10000 });
+ await sleep(300);
+ check('desktop: Send opens with the cursor in the recipient field', await page.evaluate(() => document.activeElement?.matches('textarea.send-dest')),
+ await page.evaluate(() => document.activeElement?.outerHTML.slice(0, 80)));
await page.focus('textarea.send-dest');
await page.keyboard.type('adam', { delay: 80 });
let top = '';