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
fix(merge): integrate one-line waits-on [N26]
Corey Olson4b2c5d88d4de
diff --cc src/cockpit.jsindex af079330,482d0197..1aa48261--- a/src/cockpit.js+++ b/src/cockpit.js@@@ -835,12 -770,12 +835,12 @@@ function render()// Why it came back is the first thing the person reads; the verdicts before it stay below.const back = rejected(item);const earlier = back ? item.verdicts.slice(0, -1) : item.verdicts;- $('detail').innerHTML = '<div class="stack"><div><h2><span>#' + item.id + '</span>' + esc(item.title) + '</h2><div class="meta spaced">' + chip(s) + '<span class="chip">' + esc(item.lane) + '</span><span class="chip">' + esc(item.route) + '</span></div></div>'+ $('detail').innerHTML = '<div class="stack"><div><h2><span>#' + item.id + '</span>' + rich(item.title, titles) + '</h2><div class="meta spaced">' + chip(s) + '<span class="chip">' + esc(item.lane) + '</span><span class="chip">' + esc(item.route) + '</span></div></div>'+ (back ? '<div class="sentback"><h3>Sent back' + (s === 'building' ? ', being reworked' : s === 'verify' ? ', resubmitted' : s === 'withdrawn' ? ', then withdrawn' : '') + '</h3>' + verdictHtml(item.verdict) + '</div>' : '')- + (item.criterion ? '<div><h3>Criterion</h3><div class="text">' + esc(item.criterion) + '</div></div>' : '')+ + (item.criterion ? '<div><h3>Criterion</h3><div class="text">' + rich(item.criterion, titles) + '</div></div>' : '')+ (cited.length ? '<div><h3>Spec rows it serves</h3>' + cited.map((r) => '<div class="rowref"><code>' + esc(r.id) + '</code><div>' + esc(r.text) + ' <span class="chip ' + tone(r.status) + '">' + esc(r.status) + '</span></div></div>').join('') + '</div>' : '')- + (item.brief ? '<div><h3>Brief</h3><div class="text muted">' + esc(item.brief) + '</div></div>' : '')+ + (item.brief ? '<div><h3>Brief</h3><div class="text muted">' + rich(item.brief, titles) + '</div></div>' : '')- + '<div><h3>People and commits</h3><dl class="kv">' + (item.owner && s === 'building' ? '<dt>holding</dt><dd>' + esc(item.owner) + '</dd>' : '') + (item.builtBy ? '<dt>built by</dt><dd>' + esc(item.builtBy) + '</dd>' : '') + (item.verifiedBy ? '<dt>verified by</dt><dd>' + esc(item.verifiedBy) + '</dd>' : '') + (item.commit ? '<dt>commit</dt><dd><code>' + esc(item.commit.slice(0, 12)) + '</code></dd>' : '') + (item.merged ? '<dt>merged</dt><dd><code>' + esc(item.merged.slice(0, 12)) + '</code></dd>' : '') + (item.blockedBy.length ? '<dt>waits on</dt><dd>' + item.blockedBy.map((id) => '#' + id).join(', ') + '</dd>' : '') + '</dl></div>'+ + '<div><h3>People and commits</h3><dl class="kv">' + (item.owner && s === 'building' ? '<dt>holding</dt><dd>' + esc(item.owner) + '</dd>' : '') + (item.builtBy ? '<dt>built by</dt><dd>' + esc(item.builtBy) + '</dd>' : '') + (item.verifiedBy ? '<dt>verified by</dt><dd>' + esc(item.verifiedBy) + '</dd>' : '') + (item.commit ? '<dt>commit</dt><dd><code>' + esc(item.commit.slice(0, 12)) + '</code></dd>' : '') + (item.merged ? '<dt>merged</dt><dd><code>' + esc(item.merged.slice(0, 12)) + '</code></dd>' : '') + (item.blockedBy.length ? '<dt>waits on</dt><dd class="waits-on">' + item.blockedBy.map((id) => '<span class="wait-unit"><button class="ref" data-go="item:' + id + '" type="button">#' + id + '</button></span>').join(', ') + '</dd>' : '') + '</dl></div>'+ (back && !earlier.length ? '' : '<div><h3>' + (back ? 'Earlier verdicts' : 'Verdicts') + '</h3>' + (earlier.length ? earlier.map(verdictHtml).join('') : '<div class="muted">None yet.</div>') + '</div>')+ '<div><h3>History</h3>' + timeline(item) + '</div>'+ '<div class="links"><button data-shout="' + esc(item.lane) + '" data-about="' + item.id + '" type="button">Shout the ' + esc(item.lane) + ' lane about #' + item.id + '</button><button data-new type="button">New item</button></div></div>';diff --cc test/cockpit.test.jsindex 7278f017,ba79fe52..c63c2918--- a/test/cockpit.test.js+++ b/test/cockpit.test.js@@@ -2687,14 -2595,10 +2687,14 @@@ test('real Chrome keeps the demo boardconst snapshot = async () => JSON.parse(await chrome.evaluate(`JSON.stringify((() => {const visible=e=>{const s=getComputedStyle(e),r=e.getBoundingClientRect();return !e.disabled&&s.display!=='none'&&s.visibility!=='hidden'&&Number(s.opacity)!==0&&r.width>0&&r.height>0&&!e.closest('[hidden]')};const selector='button,a[href],input:not([type=hidden]),select,textarea,[role=button],[data-root],[data-tab],[data-go],[data-item],[data-state],[data-rows],[data-row],[data-release],[data-shout],[data-new],[data-code]';- const controls=[...new Set(document.querySelectorAll(selector))].filter(visible).map(e=>{const r=e.getBoundingClientRect();return {tag:e.tagName,id:e.id||'',text:(e.innerText||e.getAttribute('aria-label')||'').trim().slice(0,60),x:r.x,y:r.y,right:r.right,bottom:r.bottom,width:r.width,height:r.height,inlineReference:e.matches('.feed button.ref, .ask button.ref, .detail button.ref')}});- const controls=[...new Set(document.querySelectorAll(selector))].filter(visible).map(e=>{const r=e.getBoundingClientRect();return {tag:e.tagName,id:e.id||'',text:(e.innerText||e.getAttribute('aria-label')||'').trim().slice(0,60),inlineReference:!!e.closest('#chain .meta .gate, #detail .kv dd.waits-on'),width:r.width,height:r.height}});++ const controls=[...new Set(document.querySelectorAll(selector))].filter(visible).map(e=>{const r=e.getBoundingClientRect();return {tag:e.tagName,id:e.id||'',text:(e.innerText||e.getAttribute('aria-label')||'').trim().slice(0,60),x:r.x,y:r.y,right:r.right,bottom:r.bottom,width:r.width,height:r.height,inlineReference:e.matches('.feed button.ref, .ask button.ref, .detail button.ref')||!!e.closest('#chain .meta .gate, #detail .kv dd.waits-on')}});+ const notice=document.querySelector('#console');+ const noticeBox=visible(notice)?notice.getBoundingClientRect():null;+ const toast=noticeBox?{x:noticeBox.x,y:noticeBox.y,right:noticeBox.right,bottom:noticeBox.bottom,visible:noticeBox.y>=0&¬iceBox.bottom<=innerHeight,+ overlaps:controls.filter(c=>c.x<noticeBox.right&&c.right>noticeBox.x&&c.y<noticeBox.bottom&&c.bottom>noticeBox.y).map(c=>c.id||c.text)}:null;return {width:innerWidth,clientWidth:document.documentElement.clientWidth,documentWidth:document.documentElement.scrollWidth,bodyWidth:document.body.scrollWidth,projectList:visible(document.querySelector('#proj-list')),needs:visible(document.querySelector('#needs')),- detail:visible(document.querySelector('#detail')),controls};+ detail:visible(document.querySelector('#detail')),controls,toast};})())`));/** Check document and body overflow against the actual layout viewport, excluding its scrollbar. */const fitsViewport = (layout) => layout.documentWidth <= layout.clientWidth && layout.bodyWidth <= layout.clientWidth;@@@ -2922,131 -2801,72 +2922,201 @@@ test('static export redacts structured}});+test('real Chrome styles shout code and item text without growing linked lines [N26]', { timeout: 120_000 }, async (t) => {+ const executable = chromeExecutable();+ if (!executable) return t.skip('Install Chrome or set PULLBOARD_CHROME for rendered shout checks.');++ const box = machine();+ const alpha = project(box, 'shout-code');+ const title = 'A `title` <img src=x onerror=alert(1)> #1';+ box.run(alpha.repo, 'add', 'web', title, '--specs', 'G1', '--criterion', 'Criterion `value` stays safe', '--brief', 'Run $ pullboard claim 1\nKeep `<safe>` literal.');+ box.run(alpha.web, 'claim', '1');+ const sourceHead = box.git(alpha.repo, 'rev-parse', 'HEAD');+ const sample = 'Inline `code <b>safe</b>`; pullboard shout --decision; --flag; src/cockpit.js; 0123456789abcdef0123456789abcdef01234567.\nPreview SPEC.md:1-2@' + sourceHead + '. Invalid prefix:SPEC.md:1-2@' + sourceHead + '.\n```js\n<script>alert(1)</script>\n```\n$ pullboard claim 1\n<script>alert(1)</script>';+ const wrappedLinkedText = 'This deliberately long linked sample wraps across lines so text length does not define line height. '.repeat(3) + '#1';+ box.run(alpha.repo, 'shout', 'person', sample, '--decision');+ box.run(alpha.web, 'shout', 'coordinator', 'A linked line #1');+ box.run(alpha.web, 'shout', 'coordinator', 'A plain line here');+ box.run(alpha.web, 'shout', 'coordinator', 'X #1');+ box.run(alpha.web, 'shout', 'coordinator', 'X');+ box.run(alpha.web, 'shout', 'coordinator', wrappedLinkedText);+ box.run(alpha.web, 'shout', 'coordinator', 'OK');+ box.run(alpha.web, 'shout', 'coordinator', '<script>alert(2)</script> outside code');+ const view = await startView(box);+ const profile = mkdtempSync(join(tmpdir(), 'pullboard-shout-code-chrome-'));+ let chrome;+ try {+ chrome = await openSnapshotChrome(executable, view.link.href, profile);+ const consoleErrors = [];+ chrome.socket.addEventListener('message', ({ data }) => {+ const message = JSON.parse(String(data));+ if (message.method === 'Runtime.consoleAPICalled' && message.params.type === 'error') consoleErrors.push(message.params.args.map((arg) => arg.value ?? arg.description ?? '').join(' '));+ if (message.method === 'Log.entryAdded' && message.params.entry.level === 'error') consoleErrors.push(message.params.entry.text);+ });+ await chrome.send('Log.enable');+ await chrome.waitFor('data?.project?.shouts?.length >= 4 && document.querySelectorAll("#feed > div:not(.day)").length >= 4');+ await chrome.evaluate(`document.querySelector('[data-tab="shouts"]').click()`);++ const rendered = JSON.parse(await chrome.evaluate(`JSON.stringify((() => {+ const shout = [...document.querySelectorAll('#feed > div:not(.day)')].find((row) => row.textContent.includes('Inline'));+ const ask = [...document.querySelectorAll('#decisions .ask')].find((row) => row.textContent.includes('Inline'));+ const titleNode = document.querySelector('#chain .row .t');+ const outside = [...document.querySelectorAll('#feed > div:not(.day)')].find((row) => row.textContent.includes('alert(2)'));+ const itemDetail = document.querySelector('#detail');+ const agentItem = document.querySelector('#agents .agent button[data-go="item:1"]');+ /** Measure the complete rendered content line box, including its item link. */+ const lineMetrics = (message) => {+ const row = [...document.querySelectorAll('#feed > div:not(.day)')].find((entry) => {+ const content = entry.children[1];+ return content && content.textContent.slice(content.querySelector('b')?.textContent.length ?? 0).trim() === message;+ });+ const content = row.children[1];+ const height = content.getBoundingClientRect().height;+ const lineHeight = parseFloat(getComputedStyle(content).lineHeight);+ return { height, lineHeight, lines: Math.round(height / lineHeight) };+ };+ return {+ shoutHtml: shout.innerHTML, shoutScripts: shout.querySelectorAll('script').length,+ askHtml: ask.innerHTML, titleHtml: titleNode.innerHTML,+ linkedMetrics: lineMetrics('X #1'), plainMetrics: lineMetrics('X'),+ wrapLinked: lineMetrics(${JSON.stringify(wrappedLinkedText)}), wrapPlain: lineMetrics('OK'),+ linkedButtons: [...document.querySelectorAll('#feed > div:not(.day)')].find((entry) => entry.textContent.includes('A linked line'))?.querySelectorAll('button.ref').length,+ previewLinks: shout.querySelectorAll('button[data-code^="SPEC.md:1-2@"]').length,+ outsideHtml: outside.innerHTML, askNestedButtons: ask.querySelector('p').querySelectorAll('button').length,+ criterionHtml: itemDetail.querySelector('.text')?.innerHTML, briefHtml: itemDetail.querySelector('.text.muted')?.innerHTML,+ needsNestedButtons: document.querySelectorAll('#needs button.ref').length,+ agentNestedButtons: document.querySelectorAll('#agents .agent button.ref').length,+ };+ })())`));+ assert.match(rendered.shoutHtml, /<code class="inline">code <b>safe<\/b><\/code>/, 'backticks create escaped inline code');+ assert.match(rendered.shoutHtml, /<code class="inline">pullboard shout<\/code>/, 'pullboard commands are inline code');+ assert.match(rendered.shoutHtml, /<code class="inline">--decision<\/code>/, 'flags are inline code');+ assert.match(rendered.shoutHtml, /<code class="inline">src\/cockpit\.js<\/code>/, 'slash paths are inline code');+ assert.match(rendered.shoutHtml, /<code class="inline">0123456789abcdef0123456789abcdef01234567<\/code>/, 'hex SHAs are inline code');+ assert.ok((rendered.shoutHtml.match(/<code class="code block">/g) ?? []).length >= 2, 'fences and dollar-prefixed lines are code blocks');+ assert.match(rendered.shoutHtml, /<code class="code block">\$ pullboard claim 1<\/code>/, 'the shell prompt stays visible in command blocks');+ assert.match(rendered.shoutHtml, /<script>alert\(1\)<\/script>/, 'script text is escaped inside code');+ assert.equal(rendered.shoutScripts, 0, 'a shout cannot create a script element');+ assert.match(rendered.outsideHtml, /<script>alert\(2\)<\/script> outside code/, 'script text outside code is escaped too');+ assert.equal(rendered.previewLinks, 1, 'only a path:lines@SHA reference with the original whole-word boundaries becomes an actionable preview');+ assert.match(rendered.shoutHtml, /Invalid prefix:<code class="inline">SPEC\.md:1-2@/, 'a path:lines@SHA suffix after a colon stays plain inline code');+ await chrome.evaluate(`document.querySelector('#feed button[data-code^="SPEC.md:1-2@"]').click()`);+ await chrome.waitFor(`document.querySelector('#feed button[data-code^="SPEC.md:1-2@"]').getAttribute('aria-expanded') === 'true'`);+ await chrome.waitFor(`document.querySelector('#feed button[data-code^="SPEC.md:1-2@"] + .code')?.textContent.includes('Demo spec')`);+ assert.match(await chrome.evaluate(`document.querySelector('#feed button[data-code^="SPEC.md:1-2@"] + .code')?.textContent || ''`), /Demo spec/, 'the original code preview still opens its referenced lines');+ assert.match(rendered.askHtml, /<code class="inline">pullboard shout<\/code>/, 'needs-you uses the same code renderer');+ assert.equal(rendered.askNestedButtons, 0, 'formatted text in an ask cannot nest interactive controls');+ assert.equal(rendered.needsNestedButtons, 0, 'needs-you keeps its button markup valid');+ assert.equal(rendered.agentNestedButtons, 0, 'agent item buttons never nest reference controls');+ assert.match(rendered.titleHtml, /<code class="inline">title<\/code>/, 'item titles use the same code renderer');+ assert.match(rendered.titleHtml, /<img src=x onerror=alert\(1\)>/, 'item text remains escaped');+ assert.match(rendered.criterionHtml, /<code class="inline">value<\/code>/, 'criterion text uses the renderer');+ assert.match(rendered.briefHtml, /<code class="inline"><safe><\/code>/, 'brief text uses the renderer without interpreting markup');+ assert.equal(rendered.linkedButtons, 1, 'the compared row contains a rendered item link');+ assert.equal(rendered.linkedMetrics.lines, 1, 'the short linked sample occupies one desktop line');+ assert.equal(rendered.plainMetrics.lines, 1, 'the short plain sample occupies one desktop line');+ assert.ok(Math.abs(rendered.linkedMetrics.height - rendered.plainMetrics.height) < 1, 'the complete one-line desktop boxes match within 1px');+ assert.ok(Math.abs(rendered.linkedMetrics.height - rendered.linkedMetrics.lineHeight) < 1, 'the linked desktop box equals one computed line-height');+ await chrome.send('Emulation.setDeviceMetricsOverride', { width: 375, height: 900, deviceScaleFactor: 1, mobile: false });+ await chrome.waitFor('innerWidth === 375 && document.querySelector("#feed > div:not(.day)")?.getBoundingClientRect().width > 0');+ const phoneMetrics = JSON.parse(await chrome.evaluate(`JSON.stringify((() => {+ /** Measure the complete rendered content line box, including its item link. */+ const lineMetrics = (message) => {+ const row = [...document.querySelectorAll('#feed > div:not(.day)')].find((entry) => {+ const content = entry.children[1];+ return content && content.textContent.slice(content.querySelector('b')?.textContent.length ?? 0).trim() === message;+ });+ const content = row.children[1];+ const height = content.getBoundingClientRect().height;+ const lineHeight = parseFloat(getComputedStyle(content).lineHeight);+ return { height, lineHeight, lines: Math.round(height / lineHeight) };+ };+ return { linked: lineMetrics('X #1'), plain: lineMetrics('X'), wrapLinked: lineMetrics(${JSON.stringify(wrappedLinkedText)}), wrapPlain: lineMetrics('OK') };+ })())`));+ assert.equal(phoneMetrics.linked.lines, 1, 'the short linked sample occupies one phone line');+ assert.equal(phoneMetrics.plain.lines, 1, 'the short plain sample occupies one phone line');+ assert.ok(Math.abs(phoneMetrics.linked.height - phoneMetrics.plain.height) < 1, 'the complete one-line phone boxes match within 1px');+ assert.ok(Math.abs(phoneMetrics.linked.height - phoneMetrics.linked.lineHeight) < 1, 'the linked phone box equals one computed line-height');+ assert.ok(phoneMetrics.wrapLinked.lines > 1, 'the long linked probe actually wraps at 375px');+ assert.equal(phoneMetrics.wrapPlain.lines, 1, 'the short plain wrap probe remains on one line');+ assert.ok(Math.abs(phoneMetrics.wrapLinked.height / phoneMetrics.wrapLinked.lines - phoneMetrics.wrapPlain.lineHeight) < 1,+ 'normalizing the forced wrap by its rendered line count proves the same per-line height');+ assert.ok(Math.abs(phoneMetrics.wrapLinked.height - phoneMetrics.wrapPlain.height) >= 1,+ 'the old whole-text-box comparison would fail on the deliberately wrapped sample');+ assert.deepEqual(consoleErrors, []);+ } finally {+ if (chrome) await closeSnapshotChrome(chrome);+ rmSync(profile, { recursive: true, force: true });+ await view.stop();+ }+});+++ test('wait references stay on one line and link to every prerequisite at phone and desktop widths [N26]', { timeout: 90_000 }, async (t) => {+ const executable = chromeExecutable();+ if (!executable) return t.skip('Install Chrome or set PULLBOARD_CHROME for prerequisite layout checks.');+ const box = machine();+ const demo = project(box, 'waits-demo');+ box.run(demo.repo, 'add', 'web', 'Prerequisite one', '--specs', 'G1', '--criterion', 'finish first');+ box.run(demo.repo, 'add', 'web', 'Prerequisite two', '--specs', 'G1', '--criterion', 'finish second');+ box.run(demo.repo, 'add', 'web', 'Blocked item', '--specs', 'G1', '--criterion', 'wait on both', '--after', '1,2');+ const view = await startView(box);+ let chrome;+ try {+ chrome = await openSnapshotChrome(executable, view.link.href, join(box.dir, 'waits-chrome'));+ /** Click a rendered prerequisite link through the same Chrome input path as a person. */+ const click = async (selector) => {+ const point = JSON.parse(await chrome.evaluate(`(() => {+ const element=document.querySelector(${JSON.stringify(selector)});+ element.scrollIntoView({block:'center'});+ const rect=element.getBoundingClientRect();+ return JSON.stringify({x:rect.x+rect.width/2,y:rect.y+rect.height/2});+ })()`));+ await chrome.send('Input.dispatchMouseEvent', { type: 'mouseMoved', ...point });+ await chrome.send('Input.dispatchMouseEvent', { type: 'mousePressed', ...point, button: 'left', clickCount: 1 });+ await chrome.send('Input.dispatchMouseEvent', { type: 'mouseReleased', ...point, button: 'left', clickCount: 1 });+ };+ for (const width of [375, 1280]) {+ await chrome.send('Emulation.setDeviceMetricsOverride', { width, height: 900, deviceScaleFactor: 1, mobile: false });+ await chrome.waitFor(`innerWidth === ${width} && !!document.querySelector('#chain .row')`);+ const itemIds = await chrome.evaluate('data.project.items.map(item => item.id + ":" + item.title + ":" + item.blockedBy.join(","))');+ assert.ok(await chrome.evaluate('!!document.querySelector(\'#chain [data-item="3"]\')'), `${width}: blocked item appears among ${itemIds.join('; ')}`);+ const list = JSON.parse(await chrome.evaluate(`JSON.stringify((() => {+ const gate=document.querySelector('#chain [data-item="3"] .meta .gate');+ const lineHeight=e=>parseFloat(getComputedStyle(e).lineHeight);+ const neighbors=[...gate.parentElement.children].filter(e=>e!==gate).map(lineHeight).filter(Number.isFinite);+ const units=[...gate.querySelectorAll('.wait-unit')];+ return {height:gate.getBoundingClientRect().height,neighborHeight:Math.max(...neighbors),unitWhiteSpaces:units.map(unit=>getComputedStyle(unit).whiteSpace),unitY:units.map(unit=>unit.getBoundingClientRect().y),links:[...gate.querySelectorAll('button.ref')].map(link=>link.dataset.go)};+ })())`));+ t.diagnostic(`${width}px list wait marker: ${list.height}px tall, neighboring metadata line ${list.neighborHeight}px`);+ assert.ok(list.height <= list.neighborHeight + 1, `${width}: list reference matches neighboring metadata height: ${JSON.stringify(list)}`);+ assert.deepEqual(list.unitWhiteSpaces, ['nowrap', 'nowrap'], `${width}: each list prerequisite stays intact`);+ assert.equal(new Set(list.unitY).size, 1, `${width}: both list prerequisites fit on one line: ${JSON.stringify(list)}`);+ assert.deepEqual(list.links, ['item:1', 'item:2'], `${width}: every prerequisite is a link`);++ await click('#chain [data-item="3"] .t');+ await chrome.waitFor("!!document.querySelector('#detail .kv dd.waits-on')");+ const detail = JSON.parse(await chrome.evaluate(`JSON.stringify((() => {+ const waits=document.querySelector('#detail .kv dd.waits-on');+ const units=[...waits.querySelectorAll('.wait-unit')];+ return {height:waits.getBoundingClientRect().height,lineHeight:parseFloat(getComputedStyle(waits).lineHeight),unitWhiteSpaces:units.map(unit=>getComputedStyle(unit).whiteSpace),unitY:units.map(unit=>unit.getBoundingClientRect().y),+ links:[...waits.querySelectorAll('button.ref')].map(link=>link.dataset.go)};+ })())`));+ t.diagnostic(`${width}px detail wait marker: ${detail.height}px tall, neighboring metadata line ${detail.lineHeight}px`);+ assert.ok(detail.height <= detail.lineHeight + 1, `${width}: detail prerequisite line matches its metadata: ${JSON.stringify(detail)}`);+ assert.deepEqual(detail.unitWhiteSpaces, ['nowrap', 'nowrap'], `${width}: each detail prerequisite stays intact`);+ assert.deepEqual(detail.links, ['item:1', 'item:2'], `${width}: detail links every prerequisite`);+ assert.equal(new Set(detail.unitY).size, 1, `${width}: detail links share one line: ${JSON.stringify(detail)}`);+ t.diagnostic(`${width}px detail wait links share y=${detail.unitY[0]}`);+ for (const [id, title] of [['1', 'Prerequisite one'], ['2', 'Prerequisite two']]) {+ await click('#chain [data-item="3"] .t');+ await chrome.waitFor("!!document.querySelector('#detail .kv dd.waits-on')");+ await click(`#detail .waits-on [data-go="item:${id}"]`);+ await chrome.waitFor(`document.querySelector('#detail h2').textContent.includes(${JSON.stringify(title)})`);+ }+ }+ assert.deepEqual(chrome.exceptions, [], 'Chrome reports no uncaught page exceptions');+ } finally {+ if (chrome) await closeSnapshotChrome(chrome);+ await view.stop();+ }+ });