import test from 'node:test'; import assert from 'node:assert/strict'; import {readFile} from 'node:fs/promises'; import {captureAccount, fillAccount} from '../human-api.mjs'; test('popup is only the human vault v0 surface', async () => { const html = await readFile(new URL('../popup.html', import.meta.url), 'utf8'); assert.match(html, /My vault/); assert.match(html, /Save autofilled login/); assert.match(html, /browser autofill this site's login/); assert.match(html, /Lock vault/); assert.match(html, /Settings/); assert.doesNotMatch(html, /id="juice-panel"/); assert.doesNotMatch(html, /id="human-username"/); assert.doesNotMatch(html, /id="human-password"/); assert.doesNotMatch(html, /