feat: share reviewed website archives and repair companion setup flows

This commit is contained in:
archipelago
2026-10-08 12:18:45 -04:00
parent 08bffdb43d
commit e5d77916d4
17 changed files with 394 additions and 20 deletions
+2 -2
View File
@@ -23,7 +23,7 @@ const { createHash } = require('node:crypto');
await page.goto('http://127.0.0.1:48191/');
await page.waitForFunction(()=>typeof window.nostr==='object');
if(!await page.locator('#upload').isDisabled())throw Error('Upload enabled before consent');
await page.locator('#identity').click();
await page.waitForFunction(()=>window.chooseCalls===1);
await page.waitForFunction(()=>document.querySelector('#pubkey').textContent==='a'.repeat(64));
await page.locator('#file').setInputFiles({name:'local-fixture.txt',mimeType:'text/plain',buffer:Buffer.from('Synthetic local file')});
await page.locator('#approve').check(); await page.locator('#upload').click();
@@ -35,6 +35,6 @@ const { createHash } = require('node:crypto');
if(uploads!==1 || outgoing.length)throw Error('Unexpected upload or external request');
if(await page.locator('#approve').isChecked())throw Error('Approval was retained after upload');
if(await page.evaluate(()=>document.documentElement.scrollWidth>innerWidth))throw Error('Mobile horizontal overflow');
console.log('PASS packaged local UI: identity chooser, explicit consent, signer denial, scoped upload, consent reset, mobile width, no external requests (mock signer/transport; real signer still pending)');
console.log('PASS packaged local UI: automatic identity chooser, explicit consent, signer denial, scoped upload, consent reset, mobile width, no external requests (mock signer/transport; real signer still pending)');
await browser.close();
})().catch(e=>{console.error(e);process.exit(1)});