notes
All repositories: gitoria
22.5 KB
// tests/e2e-chrome.mjs (mission 010): END TO END in a REAL, already-running Chrome (lisbeth's LLM test Chrome through an ssh// tunnel), real mouse clicks and key events only, on a COPY of a deploy backup (a session of the creator is written into the copy).// node tests/e2e-chrome.mjs <label> <backup.tgz> <app-port> <cdp-port> <shots-dir>// <app-port> is also the port of a REVERSE forward on lisbeth (ssh -R <app-port>:127.0.0.1:<app-port>), so Chrome there reaches// http://127.0.0.1:<app-port>; <cdp-port> is the local end of ssh -L <cdp-port>:127.0.0.1:9223 lisbeth. ONE existing about:blank tab// is navigated (never /json/new, no clipboard); it is put back to about:blank at the end.// At 390 and 1280 px: open the list, New note, type a heading, text, bold (Ctrl+B), a list and a table with real keys, wait for// the save, RELOAD (the text is back), go OFFLINE (Network.emulateNetworkConditions, page and worker), reload offline, the list// and the note open, type more offline, back online → the server has it. Works on the old editor (md-editor.js) and the block.// MISSION 011 (the theme): also, per width, the 390 AUDIT of each page (tests/mobile-measure.js: taps < 44, fields < 16 px, elements wider// than the screen, text < 14 px; list, a note, new note, login-failed, offline list → <shots>/<label>-audits.json), the USER MENU and the// phone's SIDEBAR by real clicks, opening an existing note from the list by a click, and DELETE of the test note (real clicks, on the// copy). Runs on the old tree too (copy this file + mobile-measure.js into it): the steps that need the theme's menus are skipped there.import { spawn, execFileSync } from 'node:child_process';import { writeFileSync, mkdirSync, rmSync, existsSync } from 'node:fs';import { createHash, randomBytes } from 'node:crypto';import { join, resolve, dirname } from 'node:path';import { fileURLToPath } from 'node:url';import { readFileSync } from 'node:fs';const [LABEL, tgz, portArg, cdpArg, shots] = process.argv.slice(2);const APP = resolve(dirname(fileURLToPath(import.meta.url)), '..');const PORT = Number(portArg), CDP = Number(cdpArg);const BASE = `http://${process.env.E2E_HOST || '127.0.0.1'}:${PORT}`, API = `http://127.0.0.1:${PORT}`; // E2E_HOST=localhost: another cookie jar than other workers' 127.0.0.1 apps (cookies ignore ports)const W = join(APP, '.scratch/e2e-chrome-' + LABEL);const USER = '0muh6o5a3kkd';rmSync(W, { recursive: true, force: true });mkdirSync(join(W, 'data'), { recursive: true }); mkdirSync(join(W, 'sessions'), { recursive: true }); mkdirSync(shots, { recursive: true });execFileSync('tar', ['-xzf', resolve(tgz), '-C', join(W, 'data'), 'storage/mpackdb']);const sid = randomBytes(16).toString('hex'), now = Date.now();writeFileSync(join(W, 'sessions', createHash('sha256').update(sid).digest('hex')),JSON.stringify({ created: now, data: { tag: 'e2e' }, handled: [], id: sid, seen: now, user: { id: USER } }), { mode: 0o600 });let failures = 0, passes = 0;const check = (label, ok, detail = '') => { console.log(`${ok ? 'ok ' : 'FAIL'} [${LABEL}] ${label}${ok ? '' : ' — ' + detail}`); if (ok) passes++; else failures++; };const sleep = (ms) => new Promise(r => setTimeout(r, ms));const J = JSON.stringify;let log = '';const srv = spawn(join(APP, 'bin/hybriel'), ['project.hl'], { cwd: APP, stdio: ['ignore', 'pipe', 'pipe'],env: { ...process.env, NOTES_PORT: String(PORT), NOTES_PUBLIC_URL: BASE, NOTES_STORAGE: join(W, 'data/storage/mpackdb'),NOTES_SESSIONS: join(W, 'sessions') + '/', NOTES_WATCH: '0', IDENT_URL: 'http://ident.test', IDENT_API_KEY: 'pk_e2e', IDENT_API_SECRET: 'sk_e2e' } });srv.stdout.on('data', d => log += d); srv.stderr.on('data', d => log += d);console.log('server pid', srv.pid);// ---- a tiny CDP client (one existing tab + the browser socket for the service workers) ----function connect(url) {return new Promise((ok, no) => {const ws = new WebSocket(url); let n = 0; const pend = new Map(); const handlers = [];ws.addEventListener('message', (m) => { const d = JSON.parse(m.data); if (d.id && pend.has(d.id)) { const p = pend.get(d.id); pend.delete(d.id); d.error ? p.no(new Error(d.error.message)) : p.ok(d.result); } else handlers.forEach(h => h(d)); });ws.addEventListener('open', () => ok({ ws, on: (h) => handlers.push(h), send: (method, params = {}, sessionId) => new Promise((ok2, no2) => { const id = ++n; pend.set(id, { ok: ok2, no: no2 }); ws.send(J({ id, method, params, ...(sessionId ? { sessionId } : {}) })); }) }));ws.addEventListener('error', () => no(new Error('ws error ' + url)));});}const get = async (path) => (await fetch(`http://127.0.0.1:${CDP}${path}`)).json();const api = async (path) => (await fetch(API + path, { headers: { cookie: 'notessid=' + sid } })).json();const alive = async () => { const out = []; for (const n of (await api('/api/notes')).notes.filter(n => !n.gone)) out.push({ ...n, text: (await api('/api/notes?id=' + n.id)).text }); return out; };let page = null, browser = null, tabUrlBefore = null;const ev = async (expr) => { const r = await page.send('Runtime.evaluate', { expression: expr, returnByValue: true, awaitPromise: true }); if (r.exceptionDetails) throw new Error('evaluate: ' + (r.exceptionDetails.exception && r.exceptionDetails.exception.description || r.exceptionDetails.text)); return r.result.value; };const waitFor = async (expr, label, timeout = 40000) => { const t0 = Date.now(); for (;;) { let v = false; try { v = await ev(expr); } catch {} if (v) return v; if (Date.now() - t0 > timeout) { let d = ''; try { d = await ev(`JSON.stringify({ path: location.pathname, hl: !!window.__hl, nt: !!document.getElementById('notetext'), md: !!document.querySelector('md-editor'), art: !!document.querySelector('md-editor article'), kids: document.querySelector('md-editor article') ? document.querySelector('md-editor article').children.length : -1, body: document.body.innerText.slice(0, 120) })`); } catch (e) { d = String(e); } throw new Error('timeout: ' + label + ' ' + d); } await sleep(100); } };const shot = async (name) => { const { data } = await page.send('Page.captureScreenshot', { format: 'png' }); writeFileSync(join(shots, `${LABEL}-${name}.png`), Buffer.from(data, 'base64')); };const size = async (w, h) => { await page.send('Emulation.setDeviceMetricsOverride', { width: w, height: h, deviceScaleFactor: 1, mobile: w < 600 }); await sleep(400); };const click = async (x, y) => { for (const [type, buttons] of [['mouseMoved', 0], ['mousePressed', 1], ['mouseReleased', 0]]) await page.send('Input.dispatchMouseEvent', { type, x: Math.round(x), y: Math.round(y), button: 'left', clickCount: 1, buttons }); await sleep(120); };const clickSel = async (sel) => { const r = await ev(`(() => { const e = document.querySelector(${J(sel)}); if (!e) return null; e.scrollIntoView({ block: 'center' }); const q = e.getBoundingClientRect(); return { x: q.left + q.width / 2, y: q.top + q.height / 2 }; })()`); if (!r) throw new Error('no ' + sel); await click(r.x, r.y); };// the editor surface, old (shadow DOM, [part~=editor]) or new (the block's light DOM, article)const SURF = `(document.querySelector('md-editor') && ((document.querySelector('md-editor').shadowRoot && document.querySelector('md-editor').shadowRoot.querySelector('[part~=editor]')) || document.querySelector('md-editor article')))`;const value = () => ev(`(() => { const n = document.getElementById('notetext'); if (!n) return null; const i = n.querySelector('input[name=text]'); return i ? i.value : n.value; })()`);const clickEditor = async () => { const r = await ev(`(() => { const s = ${SURF}; if (!s) return null; s.scrollIntoView({ block: 'center' }); const q = s.getBoundingClientRect(); return { x: q.left + 24, y: q.top + 16 }; })()`); if (!r) throw new Error('no editor surface'); await click(r.x, r.y); };const key = async (k, code, vk, mods = 0, text) => { const t = text && !(mods & 2) ? text : undefined; await page.send('Input.dispatchKeyEvent', { type: t ? 'keyDown' : 'rawKeyDown', modifiers: mods, key: k, code, windowsVirtualKeyCode: vk, nativeVirtualKeyCode: vk, ...(t ? { text: t, unmodifiedText: t } : {}) }); await page.send('Input.dispatchKeyEvent', { type: 'keyUp', modifiers: mods, key: k, code, windowsVirtualKeyCode: vk, nativeVirtualKeyCode: vk }); await sleep(40); };const enter = () => key('Enter', 'Enter', 13, 0, '\r');const tab = () => key('Tab', 'Tab', 9);const ctrl = (k, code, vk) => key(k, code, vk, 2);const type = async (s) => { for (const ch of s) { await page.send('Input.dispatchKeyEvent', { type: 'keyDown', text: ch, unmodifiedText: ch, key: ch }); await page.send('Input.dispatchKeyEvent', { type: 'keyUp', key: ch }); } await sleep(80); };const hydrated = () => waitFor(`!!window.__hl && window.__hl.socket && window.__hl.socket.readyState === 1`, 'hydrated');const MEASURE = readFileSync(join(APP, 'tests/mobile-measure.js'), 'utf8');const audits = [];const audit = async (name, W_) => {const m = await ev(`window.__W = ${W_};` + MEASURE);const r = { page: name, W: W_, scrollWidth: m.docScrollWidth, taps: m.taps, tapsSmall: m.tapsSmall, small: m.tapsSmallList.slice(0, 6), inputs: m.inputs, inputsSmall: m.inputsSmall, inputsSmallList: m.inputsSmallList, textSmall: m.textSmall, textSmallList: m.textSmallList.slice(0, 4), wide: m.wide, wideList: m.wideList.slice(0, 4), header: m.headerH };audits.push(r); console.log('AUDIT ' + J(r)); await shot(`${W_}-audit-${name}`);};// MISSION 013 (theme 76f99f6): the main menu marks the current page beyond colour — exactly one visible link with aria-current="page", class// current and an inset accent bar (box-shadow). Notes has ONE item (Notes, `current = true`: the shell passes no path), so "the marker moves"// is shown as: marked on the list AND on a note page, and still marked after a REAL click on the item itself (note → list).const markSel = (W_) => W_ < 600 ? '#sidebar main-menu a' : 'application-header main-menu a';const markInfo = (W_) => ev(`(() => { const ls = [...document.querySelectorAll(${J(markSel(W_))})].filter(a => a.getBoundingClientRect().width > 0); const cur = ls.filter(a => a.getAttribute('aria-current') === 'page'); const c = cur[0]; return { links: ls.length, current: cur.length, text: c && c.textContent, cls: c && c.className, shadow: c && getComputedStyle(c).boxShadow }; })()`);const markOk = (m) => m.links === 1 && m.current === 1 && !!m.cls && m.cls.includes('current') && !!m.shadow && m.shadow !== 'none';const shows = (sel) => ev(`(() => { const e = document.querySelector(${J(sel)}); return !!e && e.getBoundingClientRect().width > 0; })()`);const esc = () => key('Escape', 'Escape', 27);const overflow = () => ev(`document.documentElement.scrollWidth > innerWidth`);try {for (let i = 0; i < 480; i++) { try { if ((await fetch(API + '/')).ok) break; } catch {} await sleep(250); }check('the copy: the session is the creator', (await api('/api/me')).user === USER);let n0 = (await alive()).length;// the ONE existing tab: about:blank (never /json/new)const pages = (await get('/json/list')).filter(t => t.type === 'page');const tabs = pages.filter(t => t.url === 'about:blank');if (!tabs.length) tabs.push(...pages.filter(t => t.url.startsWith('http://127.0.0.1:')).slice(0, 1)); // the shared Chrome: a stale localhost tab of an earlier run, taken under the lock, left at about:blankif (!tabs.length) throw new Error('no existing about:blank (or stale localhost) tab');tabUrlBefore = tabs[0].url;page = await connect(tabs[0].webSocketDebuggerUrl.replace(/ws:\/\/[^/]+/, `ws://127.0.0.1:${CDP}`));browser = await connect((await get('/json/version')).webSocketDebuggerUrl.replace(/ws:\/\/[^/]+/, `ws://127.0.0.1:${CDP}`));for (const m of ['Page.enable', 'Runtime.enable', 'Network.enable']) await page.send(m);await page.send('Network.setCookie', { name: 'notessid', value: sid, url: BASE + '/' });const workers = new Map();const setOffline = async (off) => {await page.send('Network.emulateNetworkConditions', { offline: off, latency: 0, downloadThroughput: -1, uploadThroughput: -1 });const { targetInfos } = await browser.send('Target.getTargets');for (const t of targetInfos) if (t.type === 'service_worker' && t.url.startsWith(BASE) && !workers.has(t.targetId)) {const { sessionId } = await browser.send('Target.attachToTarget', { targetId: t.targetId, flatten: true });await browser.send('Network.enable', {}, sessionId); workers.set(t.targetId, sessionId);}for (const s of workers.values()) await browser.send('Network.emulateNetworkConditions', { offline: off, latency: 0, downloadThroughput: -1, uploadThroughput: -1 }, s);};const goto = async (url) => { await page.send('Page.navigate', { url }); await sleep(300); await page.send('Page.bringToFront'); };for (const [W_, H_] of [[390, 844], [1280, 900]]) {const tag = String(W_);n0 = (await alive()).length; // each width starts from what the copy holds nowconst heading = `E2E ${LABEL} ${tag}`;await size(W_, H_);await goto(BASE + '/');await waitFor(`document.querySelectorAll('#notes a').length > 0`, 'list', 60000); await hydrated();await waitFor(`!!navigator.serviceWorker.controller`, 'service worker controls the page', 40000);await shot(`${tag}-1-list`);check(`${tag}: the list shows the copy's notes`, (await ev(`document.querySelectorAll('#notes a').length`)) === n0, String(n0));await audit('list', W_);if (W_ >= 600) { const m = await markInfo(W_); check(`${tag}: the header's menu marks the list page (aria-current, accent bar) ${J(m)}`, markOk(m), J(m)); await shot(`${tag}-1e-menu-marked`); }// the user menu (the theme's icon; the old header shows Log out itself) and the phone's sidebar, by real clicksif (await ev(`!!document.querySelector('button.user-toggle')`)) {await clickSel('button.user-toggle'); await waitFor(`document.querySelector('#user-menu').matches(':popover-open')`, 'user menu'); await sleep(300);check(`${tag}: the user menu opens with Log out`, await shows('#logout')); await shot(`${tag}-1b-user-menu`); await esc(); await sleep(300);check(`${tag}: Escape closes the user menu`, !(await ev(`document.querySelector('#user-menu').matches(':popover-open')`)));} else check(`${tag}: (old header) Log out is in the header`, await shows('#logout'));if (W_ < 600 && await ev(`!!document.querySelector('button.menu-toggle')`)) {await clickSel('button.menu-toggle'); await waitFor(`document.querySelector('#sidebar').matches(':popover-open')`, 'sidebar'); await sleep(300);check(`${tag}: the ☰ opens the sidebar with the main menu (${J(await ev(`[...document.querySelectorAll('#sidebar main-menu a')].map(a => a.textContent)`))})`, (await ev(`document.querySelectorAll('#sidebar main-menu a').length`)) === 1);await shot(`${tag}-1c-sidebar`);{ const m = await markInfo(W_); check(`${tag}: the sidebar's menu marks the page (aria-current, accent bar) ${J(m)}`, markOk(m), J(m)); }await esc(); await sleep(300);}// an existing note of the copy opens by a click on the listif (n0 > 0) {await clickSel('#notes a');await waitFor(`!!document.getElementById('notetext') && ${SURF} && ${SURF}.children.length > 0`, 'an existing note opens', 60000); await sleep(400);check(`${tag}: a click on a list entry opens that note (${await ev('location.pathname')})`, /^\/note\//.test(await ev('location.pathname')) && (await value()) !== null && (await value()).length > 0);await shot(`${tag}-1d-note`); await audit('note', W_);if (W_ >= 600 || await ev(`!!document.querySelector('button.menu-toggle')`)) {if (W_ < 600) { await clickSel('button.menu-toggle'); await waitFor(`document.querySelector('#sidebar').matches(':popover-open')`, 'sidebar on the note'); await sleep(300); }const notePath = await ev('location.pathname');const m = await markInfo(W_); check(`${tag}: the menu marks the page on a note too ${J(m)}`, markOk(m), J(m)); await shot(`${tag}-1f-menu-on-note`);await clickSel(markSel(W_));await waitFor(`location.pathname === '/' && document.querySelectorAll('#notes a').length > 0`, 'the menu item leads to the list', 60000); await hydrated(); await sleep(300);if (W_ < 600) { await clickSel('button.menu-toggle'); await waitFor(`document.querySelector('#sidebar').matches(':popover-open')`, 'sidebar on the list'); await sleep(300); }const m2 = await markInfo(W_); check(`${tag}: after a real click on the item the list page is marked ${J(m2)}`, markOk(m2), J(m2)); await shot(`${tag}-1g-menu-after-click`);if (W_ < 600) { await esc(); await sleep(300); }await goto(BASE + notePath);await waitFor(`!!document.getElementById('notetext') && ${SURF} && ${SURF}.children.length > 0`, 'the note opens again', 60000); await sleep(400);}if (W_ < 600) { await clickSel('.back'); await waitFor(`!!document.querySelector('note-list') && document.querySelector('note-list').getBoundingClientRect().width > 0`, 'back to the list'); }}await clickSel('#newnote');await waitFor(`/^\\/note\\/l[0-9a-f]+$/.test(location.pathname) && ${SURF} && ${SURF}.children.length > 0`, 'the new note and its editor');await sleep(500);await audit('new-note', W_);await clickEditor();// real keys: heading, text with bold, a list, a tableawait type('# ' + heading); await enter();await type('Plain '); await ctrl('b', 'KeyB', 66); await type('bold'); await ctrl('b', 'KeyB', 66); await type(' end'); await enter();await type('| Item | Qty |'); await enter(); await type('|:---|---:|'); await enter();await type('milk'); await tab(); await type('2'); await enter(); await enter();await type('- first'); await enter(); await type('second');await sleep(300);const typed = await value();await shot(`${tag}-2-typed`);check(`${tag}: typed heading, bold, list and table are Markdown in the note`, typed && typed.startsWith('# ' + heading) && /\*\*bold\*\*/.test(typed) && /^- first$/m.test(typed) && /^- second$/m.test(typed) && /\| Item +\| +Qty \|/.test(typed) && /milk/.test(typed) && /\| *2 *\|/.test(typed), J(typed));check(`${tag}: the editor shows a heading, a bold word, a list and a table`, await ev(`(() => { const s = ${SURF}; return !!(s.querySelector('h1') && s.querySelector('strong, b') && s.querySelector('ul li') && s.querySelector('table')); })()`));let saved = null;for (let i = 0; i < 80 && !saved; i++) { saved = (await alive()).find(n => n.text === typed); if (!saved) await sleep(250); }check(`${tag}: the server has the note, byte for byte what the editor holds`, !!saved, J(typed));check(`${tag}: no sideways scroll`, !(await overflow()));// RELOADawait goto(BASE + '/note/' + (saved ? saved.id : ''));await waitFor(`!!document.getElementById('notetext') && ${SURF} && ${SURF}.children.length > 0`, 'reloaded note', 60000);await sleep(600);const reloaded = await value();await shot(`${tag}-3-reloaded`);check(`${tag}: after a reload the note is saved and the same`, reloaded === typed, J(reloaded));// OFFLINEawait setOffline(true);await goto(BASE + '/note/' + saved.id);await waitFor(`!!window.__hl && !!document.getElementById('notetext') && ${SURF} && ${SURF}.children.length > 0`, 'offline note', 60000);await sleep(800);check(`${tag}: offline the note opens with its text`, (await value()) === typed && (await ev(`document.querySelectorAll('#notes a').length`)) === n0 + 1, J(await value()));await clickEditor(); await ctrl('End', 'End', 35); await type(' offline' + tag);await sleep(2200);const offTyped = await value();check(`${tag}: offline the editor works (typing lands) and the page says it is offline`, /offline\d+$/.test(offTyped || '') && /Offline/.test(await ev(`(document.getElementById('syncstate') || {}).textContent || ''`)), J(offTyped));await shot(`${tag}-4-offline`);await goto(BASE + '/');await waitFor(`document.querySelectorAll('#notes a').length > 0`, 'offline list', 60000);check(`${tag}: offline the list opens`, (await ev(`document.querySelectorAll('#notes a').length`)) === n0 + 1);await audit('offline-list', W_);await setOffline(false);let back = null;for (let i = 0; i < 160 && !back; i++) { back = (await alive()).find(n => n.text === offTyped); if (!back) await sleep(250); }check(`${tag}: back online the offline edit reached the server (same note, no copy)`, !!back && back.id === saved.id && (await alive()).length === n0 + 1, J(offTyped));check(`${tag}: no sideways scroll at the end`, !(await overflow()));// login-failed page (the callback without a code), audited, then DELETE the test note by real clicks (on the copy)await goto(BASE + '/login/callback'); await waitFor(`!!document.getElementById('loginfailed')`, 'login failed page', 40000); await sleep(800);await audit('login-failed', W_);await goto(BASE + '/note/' + saved.id);await waitFor(`!!document.getElementById('delete') && !!document.getElementById('notetext')`, 'the note to delete', 60000); await sleep(500);await clickSel('#delete'); await waitFor(`document.getElementById('deleteask').classList.contains('open')`, 'delete question'); await shot(`${tag}-5a-delete-ask`);await clickSel('#deleteyes');let gone = false;for (let i = 0; i < 80 && !gone; i++) { gone = !(await alive()).some(n => n.id === saved.id); if (!gone) await sleep(250); }check(`${tag}: Delete (real clicks) removes the test note on the server; the list is back to ${n0} notes`, gone && (await alive()).length === n0 && (await ev(`document.querySelectorAll('#notes a').length`)) === n0, String((await alive()).length));await goto(BASE + '/'); await waitFor(`document.querySelectorAll('#notes a').length > 0`, 'list again', 60000);await shot(`${tag}-5-end`);}check('the server logged no error', !/error|Error/.test(log.replace(/error absorbed/g, '')), log.slice(-400));} catch (e) {console.log('FAIL crashed — ' + (e && e.stack || e)); failures++; console.log(log.slice(-800));} finally {try { if (page) { await page.send('Network.emulateNetworkConditions', { offline: false, latency: 0, downloadThroughput: -1, uploadThroughput: -1 }); await page.send('Emulation.clearDeviceMetricsOverride'); await page.send('Page.navigate', { url: 'about:blank' }); } } catch {}try { if (page) page.ws.close(); if (browser) browser.ws.close(); } catch {}try { srv.kill('SIGTERM'); } catch {}await sleep(1000);rmSync(W, { recursive: true, force: true });writeFileSync(join(shots, `${LABEL}-audits.json`), J(audits, null, 1));console.log(`${passes} passed, ${failures} failed (copy deleted: ${!existsSync(W)})`);process.exit(failures ? 1 : 0);}
Branches
Latest commits
- 6140e6a0sessions last 99 years (creator 2026-10-23: logins never expire; only sign out ends them)mre
- cb7e6469deploy: security gate (tests/security.mjs)mre
- 774bf34bnotes security: CSRF guard on /api/notes, new session at login, Secure cookie, uploadMax 0, login rate limit, nosniff, face payload check; tests/security.mjs; SN reportmre
- ef18a68fsync components.hybriel 214c318: MdEditor on a phone, two even toolbar rows of 44 px targets, label 15 px, table head 16 px (E2)mre
- c37488b1MN report: alignment updatemre
- 4fb35a0enotes mobile: Delete note and the delete row exactly on the editor's edges; gate asserts 1 pxmre
- 91736270MN report and logmre
- 15667425notes: delete confirmation buttons at most 12rem wide on the desktopmre
- 8f7a6a95gate: MN phone checks (list header gutter, back gap, delete question)mre
- 90c73ed3notes mobile: back link gapmre
- 72bd4f83notes mobile: list header on the gutter, delete confirmation as a question + two equal buttons, Delete note under the editor edgemre
- ba1e73f8notes: a sent edit is done once the server's version is not older, so a second writer's text shows in the first tab; gate: two writers both waysmre
- c69ef9ebsync components.hybriel 134b4e3: MdEditor builds an editor put into the page at once, redraws a surface put in anew (F5, hybriel#211)mre
- 2eb783f5sync components 9a: shared Icon (icons/icons.hl), md-editor toolbar icons + single focus ring (components f4-icons ba96735)mre
- 4dd46dadsync-components: copy icons/icons.hl + README (F4); testsmre
- c92e4a0ftests/e2e-outside.mjs: real-Chrome E2E, a note pushed from another device while open, then typingmre
- 0516b4ccmd-editor.hl: verbatim copy of components f3-mdvalue (an older text handed back is kept)mre
- 38cc11ecmd-editor.hl: verbatim copy of components f3-mdvalue (an outside value change is shown by the editor)mre
- 3e7e79f5reports/H1-hydrate.mdmre
- d98775e8tests/browser.mjs: wait for hydration before the clicks after a goto('/') (tables new note, phone sidebar)mre