Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.
JavaScript agentic-codingai-agentsai-governanceautonomous-agentsclaude-codeclicode-reviewcodexcoding-agentsdeveloper-toolsgit-hooksllmlocal-firstmulti-agentsoftware-factoryspec-driven-developmentverificationvibe-coding
feat(view): lead the roadmap with the next release [N26]
Corey Olsonbffb3a98c143
diff --git a/src/cockpit.js b/src/cockpit.jsindex e49146ff..fe628e9a 100644--- a/src/cockpit.js+++ b/src/cockpit.js@@ -184,7 +184,7 @@ function homeTab() {const kept = keep('pb.tab');return kept && kept !== 'roadmap' ? kept : 'items';}-const view = { root: keep('pb.project'), tab: addressTab() || homeTab(), itemsView: typeof location !== 'undefined' && location.hash === '#items/pipeline' ? 'pipeline' : 'list', seen: {}, code: {}, item: null, adding: false, declining: null, state: 'active', rows: { spec: 'decide', doctrine: 'all' }, row: { spec: null, doctrine: null }, agent: null, allAgents: false, agentsHidden: keep('pb.agents') === 'hidden', open: {} };+const view = { roadmapOpen: new Map(), root: keep('pb.project'), tab: addressTab() || homeTab(), itemsView: typeof location !== 'undefined' && location.hash === '#items/pipeline' ? 'pipeline' : 'list', seen: {}, code: {}, item: null, adding: false, declining: null, state: 'active', rows: { spec: 'decide', doctrine: 'all' }, row: { spec: null, doctrine: null }, agent: null, allAgents: false, agentsHidden: keep('pb.agents') === 'hidden', open: {} };let switchGeneration = 0;if (snapshot) view.state = 'all';let data = null;@@ -1268,9 +1268,11 @@ function milestoneRow(row, titles) {}/**- * The Roadmap (N26, N38): a card for each milestone in the board's order, with how many of its- * items are verified as a count and a bar, a row for each, and the note to the person in its own- * highlighted line. A milestone with no items says so, rather than draw an empty bar.+ * The Roadmap (N26, N38) leads with what ships next: the milestones with work still to verify, in the board's order,+ * the next one open; then one Shipped section, folded, holding nonempty milestones with only verified or withdrawn items, newest+ * first, each a line with its name, its item count and its note's first line. A milestone opens to a card as before:+ * how many of its items are verified as a count and a bar, a row for each, and the note to the person in its own+ * highlighted line; one with no items says so. Each part stays open or closed as the person left it.*/function roadmapCards(p, titles) {// Opened from the status bar's release, the Roadmap is that release alone, with a way back to all of them.@@ -1278,16 +1280,30 @@ function roadmapCards(p, titles) {const milestones = (p.milestones || []).filter((m) => !only || m.name === only);const lead = only ? '<div class="roadmap-only"><span>' + esc(only) + '</span><button class="link" data-roadmap-all type="button">show all</button></div>' : '';if (!milestones.length) return '<div class="card-panel empty">No milestones yet. The coordinator adds one with <code class="inline">pullboard milestone add</code>.</div>';- return lead + milestones.map((milestone) => {+ const read = milestones.map((milestone) => {const rows = milestone.items.map((entry) => milestoneItem(entry, p));const done = rows.filter((row) => row.state === 'verified').length;- const name = esc(milestone.name);- return '<article class="card-panel milestone"><header><h2>' + linked(milestone.name, titles) + '</h2>' + (rows.length ? '<span class="milestone-count">' + done + '/' + rows.length + ' done</span>' : '') + '</header>'- + (rows.length- ? '<svg class="milestone-progress" viewBox="0 0 100 1" preserveAspectRatio="none" role="progressbar" aria-label="' + name + ': ' + done + ' of ' + rows.length + ' done" aria-valuemin="0" aria-valuemax="' + rows.length + '" aria-valuenow="' + done + '"><rect width="' + Math.round((100 * done) / rows.length) + '" height="1"/></svg><ul>' + rows.map((row) => milestoneRow(row, titles)).join('') + '</ul>'- : '<p class="milestone-empty">No items yet.</p>')- + (milestone.note ? '<p class="milestone-note">' + rich(milestone.note, titles) + '</p>' : '') + '</article>';- }).join('');+ // A nonempty release has no work left when every item is verified or withdrawn.+ return { milestone, rows, done, shipped: rows.length > 0 && rows.every((row) => row.state === 'verified' || row.state === 'withdrawn') };+ });+ const coming = read.filter((m) => !m.shipped), shipped = read.filter((m) => m.shipped).reverse();+ /** Preserve each board's disclosure choices independently. */+ const open = (key, first) => (view.roadmapOpen.has(JSON.stringify([view.root, key])) ? view.roadmapOpen.get(JSON.stringify([view.root, key])) : first) ? ' open' : '';+ const caret = '<span class="caret" aria-hidden="true"></span>';+ /** Keep the existing verified-item count beside an upcoming release. */+ const count = (m) => m.rows.length ? '<span class="milestone-count">' + m.done + '/' + m.rows.length + ' done</span>' : '';+ /** Render the existing milestone items, progress and complete note when opened. */+ const body = ({ milestone, rows, done }) => (rows.length+ ? '<svg class="milestone-progress" viewBox="0 0 100 1" preserveAspectRatio="none" role="progressbar" aria-label="' + esc(milestone.name) + ': ' + done + ' of ' + rows.length + ' done" aria-valuemin="0" aria-valuemax="' + rows.length + '" aria-valuenow="' + done + '"><rect width="' + Math.round((100 * done) / rows.length) + '" height="1"/></svg><ul>' + rows.map((row) => milestoneRow(row, titles)).join('') + '</ul>'+ : '<p class="milestone-empty">No items yet.</p>')+ + (milestone.note ? '<p class="milestone-note">' + rich(milestone.note, titles) + '</p>' : '');+ /** Open only the next upcoming milestone by default. */+ const card = (m, first) => '<details class="card-panel milestone" data-key="' + esc('m:' + m.milestone.name) + '"' + open('m:' + m.milestone.name, first) + '><summary>' + caret + '<h2>' + linked(m.milestone.name, titles) + '</h2>' + count(m) + '</summary>' + body(m) + '</details>';+ /** Summarize one shipped milestone with its first note line and total count. */+ const line = (m) => '<details class="milestone shipped-one" data-key="' + esc('m:' + m.milestone.name) + '"' + open('m:' + m.milestone.name, false) + '><summary>' + caret + '<h2>' + esc(m.milestone.name) + '</h2>'+ + '<small>' + esc(firstLine(m.milestone.note)) + '</small><span class="milestone-count">' + m.rows.length + (m.rows.length === 1 ? ' item' : ' items') + '</span></summary>' + body(m) + '</details>';+ return lead + coming.map((m, n) => card(m, n === 0)).join('')+ + (shipped.length ? '<details class="card-panel shipped" data-key="shipped"' + open('shipped', false) + '><summary>' + caret + '<h2>Shipped</h2><span class="milestone-count">' + shipped.length + (shipped.length === 1 ? ' release' : ' releases') + '</span></summary>' + shipped.map(line).join('') + '</details>' : '');}/** Tags that flow inside a line of text, so a reference's line belongs to the nearest block around it. */@@ -2308,6 +2324,10 @@ $('theme').addEventListener('click', () => {theme(next);});$('q').addEventListener('input', () => { search(); view.foundAt = 0; showFound(); });+/** Remember disclosure choices independently for each board. */+$('roadmap').addEventListener('toggle', (event) => {+ if (event.target.isConnected && event.target.dataset?.key) view.roadmapOpen.set(JSON.stringify([view.root, event.target.dataset.key]), event.target.open);+}, true);// Leaving the field closes the results a moment later, so a press on a result lands first; coming back to the field// before then keeps them, or a search begun straight after Esc would lose its new results to the old close.let closingFound = 0;diff --git a/src/view.css b/src/view.cssindex afcb44a3..6c9b0359 100644--- a/src/view.css+++ b/src/view.css@@ -138,7 +138,19 @@ main { padding: 16px 18px 56px; }.two.narrow { grid-template-columns: minmax(0, 1fr) var(--agents-w); }.roadmap { display: grid; gap: 12px; max-width: 900px; align-content: start; }.milestone { padding: 14px 16px 12px; }-.milestone header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }+.roadmap summary { display: flex; align-items: center; gap: 10px; min-height: 44px; list-style: none; cursor: pointer; }+.roadmap summary::-webkit-details-marker { display: none; }+.roadmap summary .milestone-count { margin-left: auto; }+/* A small triangle that turns down when its part is open. */+.roadmap .caret { flex: none; width: 7px; height: 9px; background: var(--ink-faint); clip-path: polygon(0 0, 100% 50%, 0 100%); transition: transform .15s; }+.roadmap details[open] > summary > .caret { transform: rotate(90deg); }+.shipped { padding: 4px 16px; }+.shipped > summary h2 { margin: 0; font-size: 15px; color: var(--ink-muted); }+.shipped-one { border-top: 1px solid var(--line); }+.shipped-one > summary { min-height: 44px; }+.shipped-one > summary h2 { flex: none; font-size: 14px; }+.shipped-one > summary small { min-width: 0; overflow: hidden; color: var(--ink-faint); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }+.shipped-one[open] { padding-bottom: 10px; }.milestone h2 { margin: 0; font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }.milestone-count { color: var(--ink-muted); font: 12px var(--mono); white-space: nowrap; }.milestone-progress { display: block; width: 100%; height: 7px; margin: 10px 0 6px; overflow: hidden; border-radius: 99px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }diff --git a/test/cockpit/fixture.js b/test/cockpit/fixture.jsindex 0668a3ce..86c097f9 100644--- a/test/cockpit/fixture.js+++ b/test/cockpit/fixture.js@@ -845,6 +845,16 @@ function showing(pane, address) {return `[...document.querySelectorAll('[data-pane]')].filter((each) => !each.hidden).map((each) => each.dataset.pane).join() === ${JSON.stringify(pane)} && location.pathname + location.hash === ${JSON.stringify(address)}`;}+/** Open each folded Roadmap part once so stories that inspect all items read visible rows. */+async function openRoadmapParts(chrome) {+ const keys = JSON.parse(await chrome.stable("JSON.stringify([...document.querySelectorAll('#roadmap details')].filter(part => !part.open).map(part => part.dataset.key))"));+ for (const key of keys) {+ const part = `[...document.querySelectorAll('#roadmap details')].find(part => part.dataset.key === ${JSON.stringify(key)})`;+ await press(chrome, `${part}.querySelector(':scope > summary')`);+ await chrome.waitFor(`${part}.open`);+ }+}+/*** The Roadmap as Chrome draws it: the address and the pane shown, the page's width, and each card* with its count, the share of its bar that is filled, its note and its rows. A row has the id and@@ -964,4 +974,4 @@ async function searchFor(chrome, words, timeoutMs) {}}-export { BIN, scratch, tapTarget, SPEC, machine, project, build, sendBack, fetchReason, fetchView, fetchLive, startView, styleOf, element, ageNodes, target, settle, storage, daysOn, openPage, projectRows, productEntries, timelineRows, agentEntries, drawing, textBoxes, meet, accept, needEntries, itemRow, boardId, boardOf, assertObservationAges, withoutObservationAges, assertObservationsEqual, shoutNameText, chromeExecutable, browserPause, startSnapshotChrome, openSnapshotChrome, stopOwnedChrome, closeSnapshotChrome, watchSpecDecisionWait, earlier, shoutsAt, press, pickProject, travel, pressedInto, settled, roadmapRow, showing, readRoadmap, tabBar, serveFolder, proofShot, searchFor };+export { BIN, scratch, tapTarget, SPEC, machine, project, build, sendBack, fetchReason, fetchView, fetchLive, startView, styleOf, element, ageNodes, target, settle, storage, daysOn, openPage, projectRows, productEntries, timelineRows, agentEntries, drawing, textBoxes, meet, accept, needEntries, itemRow, boardId, boardOf, assertObservationAges, withoutObservationAges, assertObservationsEqual, shoutNameText, chromeExecutable, browserPause, startSnapshotChrome, openSnapshotChrome, stopOwnedChrome, closeSnapshotChrome, watchSpecDecisionWait, earlier, shoutsAt, press, pickProject, travel, pressedInto, settled, roadmapRow, showing, readRoadmap, openRoadmapParts, tabBar, serveFolder, proofShot, searchFor };diff --git a/test/cockpit/roadmap.test.js b/test/cockpit/roadmap.test.jsindex b2e0308f..61c1cbc3 100644--- a/test/cockpit/roadmap.test.js+++ b/test/cockpit/roadmap.test.js@@ -4,7 +4,7 @@ import { mkdtempSync, rmSync, writeFileSync } from 'node:fs';import { tmpdir } from 'node:os';import { join } from 'node:path';import { test } from 'node:test';-import { tapTarget, SPEC, machine, project, build, sendBack, fetchLive, startView, target, accept, chromeExecutable, openSnapshotChrome, closeSnapshotChrome, press, travel, pressedInto, settled, roadmapRow, showing, readRoadmap, tabBar, proofShot, pickProject } from './fixture.js';+import { tapTarget, SPEC, machine, project, build, sendBack, fetchLive, startView, target, accept, chromeExecutable, openSnapshotChrome, closeSnapshotChrome, press, travel, pressedInto, settled, roadmapRow, showing, readRoadmap, openRoadmapParts, tabBar, proofShot, pickProject } from './fixture.js';test('Roadmap and rule prose references stay inline and open the item on their own board [N26,N38]', { timeout: 90_000 }, async (t) => {@@ -141,6 +141,8 @@ test('the roadmap reads every item as the Items tab does, opens each one, anothe});await chrome.send('Log.enable');await settled(chrome, `!!data?.project && ${showing('roadmap', '/roadmap')} && document.querySelectorAll('#roadmap .milestone').length === 3`);+ // This story reads every release; open the later cards through their actual controls.+ await openRoadmapParts(chrome);let seen;for (const width of [375, 1280]) {@@ -243,3 +245,118 @@ test('the roadmap reads every item as the Items tab does, opens each one, anothermSync(profile, { recursive: true, force: true });}});++test('the roadmap leads with the next release and folds shipped ones [N26]', { timeout: 150_000 }, async (t) => {+ const executable = chromeExecutable();+ if (!executable) return t.skip('Install Chrome or set PULLBOARD_CHROME for roadmap browser checks.');+ const box = machine();+ const alpha = project(box, 'releases');+ for (const title of ['First page', 'Second page', 'Third page', 'Fourth page', 'Fifth page', 'Dropped idea']) box.run(alpha.repo, 'add', 'web', title, '--specs', 'G1', '--criterion', 'renders');+ for (const id of [1, 2, 4]) { build(box, alpha, id, `page-${id}.html`); accept(box, alpha, id); }+ box.run(alpha.repo, 'withdraw', '6', 'not needed');+ // In the board's order: two releases shipped (one with a withdrawn item, which does not hold it back), the next one+ // part done, and one queued after it.+ box.run(alpha.repo, 'milestone', 'add', '0.1', '--note', 'The first page.', '--items', '1');+ box.run(alpha.repo, 'milestone', 'add', '0.2', '--note', 'Shipped on Tuesday.\nA second line the shipped row leaves out.', '--items', '2,6');+ box.run(alpha.repo, 'milestone', 'add', '0.3', '--note', 'Next out.', '--items', '3,4');+ box.run(alpha.repo, 'milestone', 'add', '0.4', '--note', 'Queued behind 0.3.', '--items', '5');+ box.run(alpha.repo, 'milestone', 'add', 'Later');+ const other = project(box, 'other-releases');+ box.run(other.repo, 'add', 'web', 'Other next page', '--specs', 'G1', '--criterion', 'renders');+ box.run(other.repo, 'milestone', 'add', '0.3', '--items', '1');+ const view = await startView(box);+ const profile = mkdtempSync(join(tmpdir(), 'pullboard-releases-chrome-'));+ let chrome;+ /** The Roadmap as it reads: each part in order, open or closed, with what its summary says. */+ const read = async () => JSON.parse(await chrome.stable(`JSON.stringify((() => {+ const words = (e) => [...e.children].filter((c) => !c.classList.contains('caret')).map((c) => c.textContent.replace(/\\s+/g, ' ').trim()).join(' | ');+ const box = (e) => { const r = e.getBoundingClientRect(); return { width: r.width, height: r.height }; };+ return {+ page: { width: document.documentElement.clientWidth, scroll: document.documentElement.scrollWidth, body: document.body.scrollWidth },+ parts: [...document.querySelectorAll('#roadmap > details')].map((d) => ({ key: d.dataset.key, open: d.open, summary: words(d.querySelector(':scope > summary')), height: box(d.querySelector(':scope > summary')).height,+ rows: [...d.querySelectorAll(':scope > ul .milestone-item')].filter((row) => row.getBoundingClientRect().height > 0).map((row) => row.querySelector('.id').textContent),+ shipped: [...d.querySelectorAll(':scope > .shipped-one')].map((one) => ({ key: one.dataset.key, open: one.open, summary: words(one.querySelector(':scope > summary')), height: box(one.querySelector(':scope > summary')).height,+ rows: [...one.querySelectorAll('ul .milestone-item')].filter((row) => row.getBoundingClientRect().height > 0).map((row) => row.querySelector('.id').textContent) })) })),+ };+ })())`));+ /** Activate a disclosure or item through the shared native pointer helper. */+ const click = (selector) => press(chrome, `document.querySelector(${JSON.stringify(selector)})`);+ try {+ chrome = await openSnapshotChrome(executable, view.link.href, profile);+ await chrome.waitFor("typeof data === 'object' && data?.project?.milestones?.length === 5");+ await press(chrome, "document.querySelector('[data-tab=roadmap]')");+ await chrome.waitFor("!document.querySelector('[data-pane=roadmap]').hidden && document.querySelectorAll('#roadmap > details').length > 0");+ for (const scheme of ['light', 'dark']) {+ for (const width of [1280, 375]) {+ await chrome.send('Emulation.setDeviceMetricsOverride', { width, height: 900, deviceScaleFactor: 1, mobile: false });+ await chrome.send('Emulation.setEmulatedMedia', { features: [{ name: 'prefers-color-scheme', value: scheme }] });+ await chrome.stable("delete document.documentElement.dataset.theme");+ await chrome.waitFor(`innerWidth === ${width} && matchMedia('(prefers-color-scheme: ${scheme})').matches`);+ const at = `${width}px ${scheme}`;+ const r = await read();+ assert.ok(r.page.scroll <= r.page.width && r.page.body <= r.page.width, `${at}: no sideways scroll`);+ // What ships next leads, open; the release after it waits closed; the shipped ones fold into one part at the end.+ assert.deepEqual(r.parts.map((part) => [part.key, part.open, part.summary]), [+ ['m:0.3', true, '0.3 | 1/2 done'],+ ['m:0.4', false, '0.4 | 0/1 done'],+ ['m:Later', false, 'Later'],+ ['shipped', false, 'Shipped | 2 releases'],+ ], `${at}: the next release first and open, then the queued one, then Shipped, folded`);+ assert.deepEqual(r.parts[0].rows, ['#3', '#4'], `${at}: the next release shows its items`);+ assert.ok(r.parts.every((part) => part.height >= 44), `${at}: each part opens from a 44px target`);+ await click('#roadmap > details[data-key="shipped"] > summary');+ const expanded = await read();+ const history = expanded.parts.find((part) => part.key === 'shipped');+ assert.deepEqual(history.shipped.map((one) => [one.key, one.open, one.summary]), [+ ['m:0.2', false, '0.2 | Shipped on Tuesday. | 2 items'],+ ['m:0.1', false, '0.1 | The first page. | 1 item'],+ ], at + ': shipped names, first note line and counts in reverse roadmap order');+ assert.ok(history.shipped.every((one) => one.height >= 44), at + ': shipped targets are at least 44px');+ assert.ok(expanded.page.scroll <= expanded.page.width && expanded.page.body <= expanded.page.width, at + ': expanded history has no sideways scroll');+ await click('#roadmap .shipped-one[data-key="m:0.2"] > summary');+ assert.deepEqual((await read()).parts.find((part) => part.key === 'shipped').shipped[0].rows, ['#2', '#6'], at + ': verified and withdrawn items remain readable');+ await proofShot(chrome, 'releases', width);+ await click('#roadmap .shipped-one[data-key="m:0.2"] > summary');+ await click('#roadmap > details[data-key="shipped"] > summary');+ }+ }++ // Opened, Shipped lists the releases newest first: each its name, its note's first line and its item count; one+ // opens to its items as before.+ await chrome.send('Emulation.setDeviceMetricsOverride', { width: 1280, height: 900, deviceScaleFactor: 1, mobile: false });+ await chrome.waitFor('innerWidth === 1280');+ await click('#roadmap > details[data-key="shipped"] > summary');+ let r = await read();+ const shipped = r.parts.find((part) => part.key === 'shipped');+ assert.deepEqual(shipped.shipped.map((one) => [one.key, one.open, one.summary]), [+ ['m:0.2', false, '0.2 | Shipped on Tuesday. | 2 items'],+ ['m:0.1', false, '0.1 | The first page. | 1 item'],+ ], 'newest first, each one line, closed');+ assert.ok(shipped.shipped.every((one) => one.height >= 44), 'each a 44px target');+ await click('#roadmap .shipped-one[data-key="m:0.2"] > summary');+ r = await read();+ assert.deepEqual(r.parts.find((part) => part.key === 'shipped').shipped.find((one) => one.key === 'm:0.2').rows, ['#2', '#6'], 'a shipped release opens to its items');+ await click('#roadmap .shipped-one[data-key="m:0.2"] .milestone-item[data-go="item:2"]');+ await chrome.waitFor("view.tab === 'items' && document.querySelector('#detail h2')?.textContent.includes('Second page')");++ // The parts stay as the person left them when the board redraws: close the next release, then change the board.+ await press(chrome, "document.querySelector('[data-tab=roadmap]')");+ await chrome.waitFor("!document.querySelector('[data-pane=roadmap]').hidden");+ await click('#roadmap > details[data-key="m:0.3"] > summary');+ box.run(alpha.web, 'claim', '3');+ await chrome.waitFor("data.project.items.find((i) => i.id === 3)?.status === 'claimed'", 15_000);+ r = await read();+ assert.deepEqual(r.parts.map((part) => [part.key, part.open]), [['m:0.3', false], ['m:0.4', false], ['m:Later', false], ['shipped', true]], 'a redraw keeps each part as it was left');+ await pickProject(chrome, `[...document.querySelectorAll('[data-root]')].find((e) => e.dataset.root === ${JSON.stringify(other.repo)})`);+ await press(chrome, "document.querySelector('[data-tab=roadmap]')");+ assert.deepEqual((await read()).parts.map((part) => [part.key, part.open]), [['m:0.3', true]], 'another board starts with its own next release open');+ await pickProject(chrome, `[...document.querySelectorAll('[data-root]')].find((e) => e.dataset.root === ${JSON.stringify(alpha.repo)})`);+ await press(chrome, "document.querySelector('[data-tab=roadmap]')");+ assert.deepEqual((await read()).parts.map((part) => [part.key, part.open]), [['m:0.3', false], ['m:0.4', false], ['m:Later', false], ['shipped', true]], 'returning to the board preserves its disclosure choices');+ assert.deepEqual(chrome.exceptions, [], 'the page raises no uncaught exception');+ } finally {+ if (chrome) await closeSnapshotChrome(chrome);+ rmSync(profile, { recursive: true, force: true });+ await view.stop();+ }+});diff --git a/test/cockpit/snapshot.test.js b/test/cockpit/snapshot.test.jsindex 28492b32..2ce44aaf 100644--- a/test/cockpit/snapshot.test.js+++ b/test/cockpit/snapshot.test.js@@ -6,7 +6,7 @@ import { tmpdir } from 'node:os';import { join, resolve } from 'node:path';import { test } from 'node:test';import { portableSnapshot } from '../../src/serve.js';-import { machine, project, build, sendBack, fetchLive, startView, accept, boardId, boardOf, assertObservationsEqual, chromeExecutable, browserPause, openSnapshotChrome, closeSnapshotChrome, press, travel, settled, roadmapRow, showing, readRoadmap, serveFolder, proofShot } from './fixture.js';+import { machine, project, build, sendBack, fetchLive, startView, accept, boardId, boardOf, assertObservationsEqual, chromeExecutable, browserPause, openSnapshotChrome, closeSnapshotChrome, press, travel, settled, roadmapRow, showing, readRoadmap, openRoadmapParts, serveFolder, proofShot } from './fixture.js';test('static export stays in its prefix and replays read-only in Chrome [A10,A3]', { timeout: 90_000 }, async (t) => {@@ -312,6 +312,7 @@ test('an exported roadmap has its own address under a folder, and Back and Forwaawait settled(chrome, `${ready} && ${showing('items', '/demo/')}`);await press(chrome, `document.querySelector('[data-tab="roadmap"]')`);await chrome.waitFor(showing('roadmap', '/demo/#roadmap'));+ await openRoadmapParts(chrome);const seen = await readRoadmap(chrome);assert.deepEqual(seen.cards[0].rows.map(({ id, label, tone, button }) => ({ id, label, tone, button })), [{ id: '#1', label: 'verified', tone: 'ok', button: true },@@ -344,6 +345,7 @@ test('an exported roadmap has its own address under a folder, and Back and Forwafor (const width of [375, 1280]) {await chrome.send('Emulation.setDeviceMetricsOverride', { width, height: 900, deviceScaleFactor: 1, mobile: false });await chrome.waitFor(`innerWidth === ${width}`);+ await openRoadmapParts(chrome);const layout = await readRoadmap(chrome);assert.ok(layout.document <= layout.client && layout.body <= layout.client, `${width}: no sideways scroll in the snapshot: ${JSON.stringify(layout)}`);await proofShot(chrome, 'snapshot-roadmap', width);