aboutsummaryrefslogtreecommitdiffstats
path: root/tools/profile-actions-test.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-10-02 14:35:25 -0700
committerAdam Soltys <[email protected]>2026-10-02 14:35:25 -0700
commitdb8b88b973635b7329cfd5f234c6f8dd6e9e2ccf (patch)
tree3e083c874efb716810ceb73b3f42ff242309cce2 /tools/profile-actions-test.js
parent12b129de5e579e0596c87f65524bd48cfbbe3e87 (diff)
downloadcoinosv3-db8b88b973635b7329cfd5f234c6f8dd6e9e2ccf.tar.gz
coinosv3-db8b88b973635b7329cfd5f234c6f8dd6e9e2ccf.zip
Send: the recipient field grows to show it all; history steps aside while sending
- The recipient is a one-line textarea that wraps and grows (rows from the text's length over the field's measured width), so a whole address is in view in the field itself — no second copy in small type below. Enter doesn't break it and pasted line breaks are dropped. Empty, it is as tall as its hint (measured in the hint's own face), so that's whole too. - Past the recipient — the amount, a review, a Lightning/Ark confirmation, a raw tx to broadcast — the history list below the send pane is left out. - tools/send-dest-test.js (390px and 1280px). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Dmcrt9KyNDKVWFKnb8BREo
Diffstat (limited to 'tools/profile-actions-test.js')
-rw-r--r--tools/profile-actions-test.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/tools/profile-actions-test.js b/tools/profile-actions-test.js
index 830d7a0..e44c037 100644
--- a/tools/profile-actions-test.js
+++ b/tools/profile-actions-test.js
@@ -59,7 +59,7 @@ try {
// the suggestion's metadata and fetch the large image before selection.
await page.evaluate(() => { profileActions.showSend({ fresh: true }); profileActions.render(); });
const portraitResponse = page.waitForResponse(r => r.url().endsWith('/recipient-portrait.svg'));
- await page.type('input.mono-input', 'carol');
+ await page.type('textarea.send-dest', 'carol');
await page.waitForSelector('.send-suggest .ava-img');
await portraitResponse;
await page.evaluate(() => {
@@ -73,7 +73,7 @@ try {
});
await page.click('.send-suggest .chat-thread-row');
await page.waitForSelector('.send-avatar');
- assert.equal(await page.$eval('input.mono-input', e => e.value), npubEncode(searchPeer));
+ assert.equal(await page.$eval('textarea.send-dest', e => e.value), npubEncode(searchPeer));
assert(await page.$eval('.send-avatar', e => e.classList.contains('ava-img') && e.style.backgroundImage.includes('/recipient-portrait.svg') && getComputedStyle(e).visibility !== 'hidden'), 'selection immediately uses the already-fetched suggestion portrait');
assert(await page.evaluate(() => recipientFrames.length > 0 && recipientFrames.every(f => !f.punk && !f.hidden && f.picture.includes('/recipient-portrait.svg'))), 'every selected-recipient frame has the real avatar, without fallback or placeholder');
await page.evaluate(() => recipientObserver.disconnect());
@@ -99,11 +99,11 @@ try {
Object.assign(ui, previous);
render();
}, previous);
- assert.equal(await page.$('input.mono-input'), null, 'previous payment displays its success view');
+ assert.equal(await page.$('textarea.send-dest'), null, 'previous payment displays its success view');
await openProfile(nextPeer);
await action('Pay');
- await page.waitForSelector('input.mono-input');
- assert.equal(await page.$eval('input.mono-input', (e) => e.value), npubEncode(nextPeer));
+ await page.waitForSelector('textarea.send-dest');
+ assert.equal(await page.$eval('textarea.send-dest', (e) => e.value), npubEncode(nextPeer));
assert(!(await page.$('.check-badge')), 'previous success must not win over the new payment form');
const state = await page.evaluate(() => ({
recipients: profileActions.ui.send.recipients.map(({ address, amount }) => ({ address, amount })),
@@ -125,8 +125,8 @@ try {
ui.zap = { stale: true }; ui.nameResolve = { text: '[email protected]' };
});
await action('Pay');
- await page.waitForSelector('input.mono-input');
- assert.equal(await page.$eval('input.mono-input', (e) => e.value), npubEncode(peer));
+ await page.waitForSelector('textarea.send-dest');
+ assert.equal(await page.$eval('textarea.send-dest', (e) => e.value), npubEncode(peer));
assert(await page.evaluate(() => {
const { ui } = profileActions;
return !ui.send.max && !ui.arkLnFromSavingsOk && ui.send.recipients.length === 1 && ui.send.recipients[0].amount === ''
@@ -183,7 +183,7 @@ try {
assert.equal(await page.evaluate(() => profileActions.ui.profilePk), peer);
await assertBlank();
await page.goBack();
- await page.waitForSelector('input.mono-input');
+ await page.waitForSelector('textarea.send-dest');
await assertBlank();
assert.equal(await page.$('.send-person'), null, 'returning to Send has no old recipient portrait');
@@ -194,7 +194,7 @@ try {
await page.waitForFunction(() => profileActions.ui.tab === 'receive');
await assertBlank();
await page.goForward();
- await page.waitForSelector('input.mono-input');
+ await page.waitForSelector('textarea.send-dest');
await assertBlank();
console.log('✓ Leaving Send for navigation tabs, a recipient profile or browser Back clears it; returning starts blank');