Skip to content

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.

test(view): explain timing budgets [N26]

Corey Olsona681d386e1e7
diff --git a/test/cockpit/demo.test.js b/test/cockpit/demo.test.js
index 38db4907..f1a34312 100644
--- a/test/cockpit/demo.test.js
+++ b/test/cockpit/demo.test.js
@@ -156,7 +156,7 @@ test('real Chrome keeps the demo board usable at phone and desktop widths [H5,N2
for (const width of [375, 1280]) {
if (width === 1280) {
box.run(demo.repo, 'shout', 'person', 'Should the desktop demo ship?', '--decision');
- await chrome.waitFor("document.querySelector('#needs').innerText.includes('Should the desktop demo ship?')", 15_000);
+ await chrome.waitFor("document.querySelector('#needs').innerText.includes('Should the desktop demo ship?')", 15_000); // budget: hang ceiling for the demo decision shout to appear in Needs; no throughput claim.
}
await setViewport(width);
await click('[data-tab="items"]');
diff --git a/test/cockpit/fixture.js b/test/cockpit/fixture.js
index f602b514..8e874f12 100644
--- a/test/cockpit/fixture.js
+++ b/test/cockpit/fixture.js
@@ -640,7 +640,7 @@ async function openSnapshotChrome(executable, url, profile) {
const target = await (await fetch(`http://127.0.0.1:${port}/json/new?about:blank`, { method: 'PUT', signal: AbortSignal.timeout(10_000) })).json();
socket = new WebSocket(target.webSocketDebuggerUrl);
await new Promise((resolve, reject) => {
- const timer = setTimeout(() => reject(new Error('DevTools socket did not open')), 10_000);
+ const timer = setTimeout(() => reject(new Error('DevTools socket did not open')), 10_000); // budget: hang ceiling for the local DevTools socket-open handshake; no throughput claim.
socket.addEventListener('open', () => { clearTimeout(timer); resolve(); }, { once: true });
socket.addEventListener('error', () => { clearTimeout(timer); reject(new Error('DevTools socket failed')); }, { once: true });
});
@@ -661,7 +661,7 @@ async function openSnapshotChrome(executable, url, profile) {
/** Send one CDP command and clear its timeout on either response or failure. */
const send = (method, params = {}) => new Promise((resolve, reject) => {
const key = ++id;
- const timer = setTimeout(() => { pending.delete(key); reject(new Error(`DevTools timed out: ${method}`)); }, 45_000);
+ const timer = setTimeout(() => { pending.delete(key); reject(new Error(`DevTools timed out: ${method}`)); }, 45_000); // budget: hang ceiling for one unanswered DevTools command; no throughput claim.
pending.set(key, { resolve, reject, timer });
socket.send(JSON.stringify({ id: key, method, params }));
});
@@ -713,7 +713,7 @@ async function stopOwnedChrome(child, stopped) {
try { process.kill(-child.pid, 'SIGTERM'); } catch { /* The owned Chrome group already exited. */ }
if (await waitBounded(5_000)) return;
try { process.kill(-child.pid, 'SIGKILL'); } catch { /* The owned Chrome group already exited. */ }
- assert.ok(await waitBounded(5_000), 'owned Chrome exits after SIGKILL within the bounded cleanup window');
+ assert.ok(await waitBounded(5_000), 'owned Chrome exits after SIGKILL within the bounded cleanup window'); // budget: hang ceiling for owned Chrome process-group cleanup; no throughput claim.
}
/** Close the CDP socket and stop only this test's isolated Chrome process group. */
diff --git a/test/cockpit/layout.test.js b/test/cockpit/layout.test.js
index 2a7e772e..b2ef291b 100644
--- a/test/cockpit/layout.test.js
+++ b/test/cockpit/layout.test.js
@@ -457,7 +457,7 @@ test('the board reads at a glance from the status bar [N26]', { timeout: 180_000
const alreadyRead = await chrome.stable('data.project.shouts.length');
assert.ok(alreadyRead >= 2, `shouts the person has already read: ${alreadyRead}`);
box.run(alpha.web, 'shout', 'coordinator', 'web-1 is on it');
- await chrome.waitFor("!document.querySelector('#status-unread')?.hidden && document.querySelector('#status-unread')?.textContent === '1 unread'", 15_000);
+ await chrome.waitFor("!document.querySelector('#status-unread')?.hidden && document.querySelector('#status-unread')?.textContent === '1 unread'", 15_000); // budget: hang ceiling for the unread bar after the native shout; no throughput claim.
await click('#status-unread');
await chrome.waitFor("view.tab === 'shouts' && document.querySelector('#status-unread')?.hidden === true");
const feed = async () => JSON.parse(await chrome.stable("JSON.stringify([...document.querySelectorAll('#feed .shout .text')].map((text) => text.textContent))"));
@@ -468,7 +468,7 @@ test('the board reads at a glance from the status bar [N26]', { timeout: 180_000
// Cut off from the board, the bar turns red and says why.
await chrome.stable("globalThis.fetch = () => Promise.reject(new TypeError('Failed to fetch'))");
- await chrome.waitFor("document.querySelector('#live').textContent.startsWith('offline')", 15_000);
+ await chrome.waitFor("document.querySelector('#live').textContent.startsWith('offline')", 15_000); // budget: hang ceiling for the offline state after fetch rejection; no rendering-speed claim.
r = await read();
const [red, green, blue] = r.barTint;
assert.ok(red > green + 10 && red > blue + 10 && r.bar.length > 0, `the bar turns red and keeps its parts: ${JSON.stringify(r.barTint)}`);
diff --git a/test/cockpit/needs.test.js b/test/cockpit/needs.test.js
index c0763f86..3829ba00 100644
--- a/test/cockpit/needs.test.js
+++ b/test/cockpit/needs.test.js
@@ -264,20 +264,20 @@ test('needs you and the asks sit in their lists [N26]', { timeout: 180_000 }, as
await chrome.stable("document.querySelector('#shout-text').focus()");
await chrome.send('Input.insertText', { text: 'Footer after the greeting.' });
await click('#shout-send');
- await chrome.waitFor("[...document.querySelectorAll('#feed .shout .text')].some((text) => text.textContent === 'Footer after the greeting.')", 15_000);
+ await chrome.waitFor("[...document.querySelectorAll('#feed .shout .text')].some((text) => text.textContent === 'Footer after the greeting.')", 15_000); // budget: hang ceiling for the sent shout to appear in the feed; no throughput claim.
r = await read();
assert.equal(r.okNote, false, 'a sent shout is its card, with no note beside the composer');
// However many calls there are, each is a row: six more decisions make ten rows, none folded into a count.
for (const n of [1, 2, 3, 4, 5, 6]) box.run(alpha.repo, 'shout', 'person', `Ship part ${n} today?`, '--decision');
await click('[data-tab=items]');
- await chrome.waitFor("document.querySelectorAll('#needs > .row').length >= 10", 15_000);
+ await chrome.waitFor("document.querySelectorAll('#needs > .row').length >= 10", 15_000); // budget: hang ceiling for ten native decision rows to appear; no throughput claim.
r = await read();
assert.deepEqual([r.needs.length, r.needs.filter((need) => /^Ship part [1-6] today\?$/.test(need.words)).length, r.needs.every((need) => need.label)], [10, 6, true],
`ten calls, ten rows, each with its kind in the warning colour: ${JSON.stringify(r.needs)}`);
assert.equal(await chrome.stable("document.querySelector('#needs').textContent.includes('more need you')"), false, 'no call is folded into a count');
// Narrowed to the unread shouts from the status bar, the feed carries its bar with show all; show all clears it.
box.run(alpha.web, 'shout', 'coordinator', 'Greeting is half done.');
- await chrome.waitFor("!document.querySelector('#status-unread')?.hidden", 15_000);
+ await chrome.waitFor("!document.querySelector('#status-unread')?.hidden", 15_000); // budget: hang ceiling for the unread badge after a new shout; no throughput claim.
await click('#status-unread');
await chrome.waitFor("view.tab === 'shouts' && !!document.querySelector('#feed .feed-bar')");
assert.match(await chrome.stable("document.querySelector('#feed .feed-bar').textContent"), /^\d+ unread\s*show all$/, 'narrowed to the unread shouts, the feed carries its bar with show all');
diff --git a/test/cockpit/roadmap.test.js b/test/cockpit/roadmap.test.js
index 3b6210e7..7d1c19f9 100644
--- a/test/cockpit/roadmap.test.js
+++ b/test/cockpit/roadmap.test.js
@@ -218,9 +218,9 @@ test('the roadmap reads every item as the Items tab does, opens each one, anothe
// It updates live as items move, here and on the other repo's board.
accept(box, alpha, 4);
- await chrome.waitFor(`${roadmapRow('#4')}?.querySelector('.chip').innerText === 'verified' && document.querySelector('#roadmap .milestone-count').innerText === '3/5 done'`, 15_000);
+ await chrome.waitFor(`${roadmapRow('#4')}?.querySelector('.chip').innerText === 'verified' && document.querySelector('#roadmap .milestone-count').innerText === '3/5 done'`, 15_000); // budget: hang ceiling for the verified item and milestone count to refresh; no throughput claim.
box.run(beacon.web, 'claim', '1');
- await chrome.waitFor(`${roadmapRow('beacon#1')}?.querySelector('.chip').innerText === 'building'`, 15_000);
+ await chrome.waitFor(`${roadmapRow('beacon#1')}?.querySelector('.chip').innerText === 'building'`, 15_000); // budget: hang ceiling for the claimed external item to refresh; no throughput claim.
// A board with no milestones says how one starts; the address stays the Roadmap's.
await press(chrome, `document.querySelector('[data-root=${JSON.stringify(beacon.repo)}]')`);
@@ -363,7 +363,7 @@ test('the roadmap leads with the next release and folds shipped ones [N26]', { t
await chrome.waitFor("!document.querySelector('[data-pane=roadmap]').hidden");
await click('#roadmap-list > [data-key="m:0.3"] > .milestone-head');
box.run(alpha.web, 'claim', '3');
- await chrome.waitFor("data.project.items.find((i) => i.id === 3)?.status === 'claimed'", 15_000);
+ await chrome.waitFor("data.project.items.find((i) => i.id === 3)?.status === 'claimed'", 15_000); // budget: hang ceiling for the native claim to reach the open roadmap; no throughput claim.
r = await read();
assert.deepEqual(r.parts.map((part) => [part.key, part.open]), [['m:0.3', false], ['m:0.4', true], ['m:Later', true], ['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)})`);
diff --git a/test/cockpit/search.test.js b/test/cockpit/search.test.js
index f9b03861..69f111df 100644
--- a/test/cockpit/search.test.js
+++ b/test/cockpit/search.test.js
@@ -90,7 +90,7 @@ test('row ages read from one captured commit [N26]', () => {
/** Wait for committed row order, rather than rows that may already be visible as uncommitted edits. */
async function committedRows(chrome, head) {
- await chrome.waitFor(`data?.project?.rowAgesAt?.['SPEC.md'] === ${JSON.stringify(head)} && data.project.rowAgesAt['ways.md'] === ${JSON.stringify(head)}`, 15_000);
+ await chrome.waitFor(`data?.project?.rowAgesAt?.['SPEC.md'] === ${JSON.stringify(head)} && data.project.rowAgesAt['ways.md'] === ${JSON.stringify(head)}`, 15_000); // budget: hang ceiling for the committed row-age snapshot to arrive; no throughput claim.
}
/** Observe the old and refreshed captures around real commits without replacing any Git or HTTP response. */
diff --git a/test/cockpit/shared-wait.test.js b/test/cockpit/shared-wait.test.js
index 56132713..7e460a7a 100644
--- a/test/cockpit/shared-wait.test.js
+++ b/test/cockpit/shared-wait.test.js
@@ -200,7 +200,7 @@ test('the shared wait survives a redrawn element [N26,C7]', { timeout: 120_000 }
assert.deepEqual(await chrome.stable(`[window.__redrawGap, document.querySelector('#redrawn-proof').dataset.replaced, window.__redrawSamples >= 4]`), [true, 'yes', true]);
const missing = `document.querySelector('#never-redrawn-proof').closest('button')`;
// budget: this deliberately missing target's short deadline bounds the diagnostic control.
- await assert.rejects(() => waitForStableBoxes(chrome, missing, 100), error => {
+ await assert.rejects(() => waitForStableBoxes(chrome, missing, 100), error => { // budget: declared 100 ms negative diagnostic deadline for this deliberately absent selector.
assert.match(error.message, /never-redrawn-proof/, 'the timeout names the selector');
assert.match(error.message, /last saw.*(?:TypeError|closest|null)/i, 'the timeout retains the last failed sample');
return true;
@@ -223,7 +223,7 @@ test('a timeout always reports the last sample [N26,C7]', { timeout: 90_000 }, a
await chrome.waitFor('!!data?.project');
await chrome.send('Emulation.setCPUThrottlingRate', { rate: 6 });
const missing = "document.querySelector('#never-sampled-proof').closest('button')";
- await assert.rejects(() => waitForStableBoxes(chrome, missing, 1), error => {
+ await assert.rejects(() => waitForStableBoxes(chrome, missing, 1), error => { // budget: declared 1 ms first-sample negative diagnostic deadline for this absent selector.
assert.match(error.message, /never-sampled-proof/, 'the timeout names the missing target');
assert.match(error.message, /last saw.*TypeError/i, 'the 1 ms timeout includes the first sampled failure');
return true;
diff --git a/test/cockpit/shouts.test.js b/test/cockpit/shouts.test.js
index ae20cd0b..7ed3ee0c 100644
--- a/test/cockpit/shouts.test.js
+++ b/test/cockpit/shouts.test.js
@@ -557,7 +557,7 @@ test('shouts read as cards [N26]', { timeout: 120_000 }, async (t) => {
await chrome.click(`document.querySelector('#feed #shout-${ids[long]} .more')`);
assert.deepEqual(await foldOf(), ['less', 12], 'more shows every line');
box.run(alpha.web, 'shout', 'all', 'A later shout.');
- await chrome.waitFor(`data.project.shouts.some((s) => s.shout_text === 'A later shout.') && document.querySelector('#feed .shout .text')?.textContent === 'A later shout.'`, 15_000);
+ await chrome.waitFor(`data.project.shouts.some((s) => s.shout_text === 'A later shout.') && document.querySelector('#feed .shout .text')?.textContent === 'A later shout.'`, 15_000); // budget: hang ceiling for the new shout to replace the feed card; no throughput claim.
assert.deepEqual(await foldOf(), ['less', 12], 'an open shout stays open across a refresh');
await chrome.click(`document.querySelector('#feed #shout-${ids[long]} .more')`);
assert.deepEqual(await foldOf(), ['more', 6], 'less folds it again');
@@ -565,12 +565,12 @@ test('shouts read as cards [N26]', { timeout: 120_000 }, async (t) => {
// The block opens on its header to the lines it names, in its own frame.
const blockRef = `document.querySelector('#feed #shout-${ids[blockShout]} .code-ref > button.ref.block')`;
await chrome.click(`${blockRef}`);
- await chrome.waitFor(`${blockRef}.parentElement.classList.contains('open') && ${blockRef}.getAttribute('aria-expanded') === 'true' && ${blockRef}.parentElement.querySelector('.code-wrap .code')?.textContent.includes('Demo spec')`, 15_000);
+ await chrome.waitFor(`${blockRef}.parentElement.classList.contains('open') && ${blockRef}.getAttribute('aria-expanded') === 'true' && ${blockRef}.parentElement.querySelector('.code-wrap .code')?.textContent.includes('Demo spec')`, 15_000); // budget: hang ceiling for the referenced block to open; no throughput claim.
// The short label still opens the code it names, at that commit.
const deepRef = `[...document.querySelectorAll('#feed #shout-${ids[refsShout]} button[data-code]')][1]`;
await chrome.click(`${deepRef}`);
- await chrome.waitFor(`${deepRef}.getAttribute('aria-expanded') === 'true' && ${deepRef}.nextElementSibling?.textContent.includes('Deep line one')`, 15_000);
+ await chrome.waitFor(`${deepRef}.getAttribute('aria-expanded') === 'true' && ${deepRef}.nextElementSibling?.textContent.includes('Deep line one')`, 15_000); // budget: hang ceiling for the deep code reference to open; no throughput claim.
// An inline reference keeps its label in the sentence and opens the same block a reference on its own line is.
const opened = JSON.parse(await chrome.stable(`JSON.stringify((() => {
const inline = ${deepRef}, block = inline.nextElementSibling, header = block?.querySelector(':scope > button.ref.block');
@@ -687,7 +687,7 @@ test('the shout composer, agent filter and agents panel [N26]', { timeout: 120_0
assert.ok(await height() > one + 20, 'the message grows as it is typed');
assert.equal(await chrome.stable('data.project.shouts.length'), total, 'and sends nothing');
await key(0);
- await chrome.waitFor("data.project.shouts.some((s) => s.shout_text === 'First line\\nsecond line\\nthird line' && s.shout_to === 'coordinator')", 15_000);
+ await chrome.waitFor("data.project.shouts.some((s) => s.shout_text === 'First line\\nsecond line\\nthird line' && s.shout_to === 'coordinator')", 15_000); // budget: hang ceiling for the submitted multiline shout to be recorded; no throughput claim.
await chrome.waitFor("document.querySelector('#shout-text').value === ''");
assert.ok(Math.abs(await height() - one) < 1, 'Enter sends, and the bar shrinks back to one line');
assert.ok(await chrome.stable("!document.querySelector('#console').hidden && !document.querySelector('.composer #console') && document.querySelector('#console').getBoundingClientRect().bottom <= document.querySelector('.composer').getBoundingClientRect().top"),
@@ -782,17 +782,17 @@ test('the composer goes to the coordinator and says who heard [N26]', { timeout:
await chrome.stable("document.querySelector('#shout-text').focus()");
await chrome.send('Input.insertText', { text: 'Ship the greeting?' });
await key();
- await chrome.waitFor("data.project.shouts.some((s) => s.shout_from === 'person' && s.shout_to === 'coordinator' && s.shout_text === 'Ship the greeting?')", 15_000);
- await chrome.waitFor(`${heardOf('Ship the greeting?')} === 'Not heard yet'`, 15_000);
+ await chrome.waitFor("data.project.shouts.some((s) => s.shout_from === 'person' && s.shout_to === 'coordinator' && s.shout_text === 'Ship the greeting?')", 15_000); // budget: hang ceiling for the person shout to be recorded; no throughput claim.
+ await chrome.waitFor(`${heardOf('Ship the greeting?')} === 'Not heard yet'`, 15_000); // budget: hang ceiling for the initial unread state to appear; no throughput claim.
box.run(alpha.repo, 'inbox');
- await chrome.waitFor(`${heardOf('Ship the greeting?')} === 'Heard by coordinator (unknown)'`, 15_000);
+ await chrome.waitFor(`${heardOf('Ship the greeting?')} === 'Heard by coordinator (unknown)'`, 15_000); // budget: hang ceiling for coordinator inbox to mark the shout heard; no throughput claim.
// A shout that reaches everyone says who of them has read it: the coordinator first, then how many agents.
// (The person reaches every agent through the relay's requests; here the board records one directly.)
earlier(alpha.repo, Date.now(), (board) => shoutOnBoard(board, { from: 'person', to: 'all', text: 'Hold the merge, please.', lanes: ['web'] }));
- await chrome.waitFor("data.project.shouts.some((s) => s.shout_from === 'person' && s.shout_to === 'all')", 15_000);
+ await chrome.waitFor("data.project.shouts.some((s) => s.shout_from === 'person' && s.shout_to === 'all')", 15_000); // budget: hang ceiling for the addressed-to-all shout to be recorded; no throughput claim.
box.run(alpha.repo, 'inbox');
box.run(alpha.web, 'inbox');
- await chrome.waitFor(`${heardOf('Hold the merge, please.')} === 'Heard by coordinator (unknown) and 1 agent'`, 15_000);
+ await chrome.waitFor(`${heardOf('Hold the merge, please.')} === 'Heard by coordinator (unknown) and 1 agent'`, 15_000); // budget: hang ceiling for both inbox reads to appear; no throughput claim.
const all = (await read()).heard.find(([text]) => text === 'Hold the merge, please.');
assert.deepEqual(all.slice(2), [2, 'Heard by coordinator (unknown), web-1 (Test Model)'], 'with their avatars, and every name on hover');
diff --git a/test/cockpit/spec.test.js b/test/cockpit/spec.test.js
index 6707cba8..f44ea086 100644
--- a/test/cockpit/spec.test.js
+++ b/test/cockpit/spec.test.js
@@ -197,7 +197,7 @@ test('spec rows read as a list, decided in the panel [N26]', { timeout: 300_000
await tap(`#${kind}-list [data-row="${kind}:${first}"]`);
await chrome.waitFor(`view.row['${kind}'] === '${first}' && document.activeElement === document.querySelector('#${kind}-list')`);
// At 375 the detail stacks under the list: tapping a row brings its decision into view.
- if (width === 375) await chrome.waitFor(`(() => { const d = document.querySelector('#${kind}-detail [data-row-decision="approve"]')?.getBoundingClientRect(); return !!d && d.top >= 0 && d.bottom <= innerHeight; })()`, 10_000);
+ if (width === 375) await chrome.waitFor(`(() => { const d = document.querySelector('#${kind}-detail [data-row-decision="approve"]')?.getBoundingClientRect(); return !!d && d.top >= 0 && d.bottom <= innerHeight; })()`, 10_000); // budget: hang ceiling for the selected mobile decision to enter the viewport; no speed threshold.
// The picked row's detail holds its decision once, a 44px target each.
const held = await read(kind);
assert.deepEqual(held.decide.map((b) => b.word), ['Approve', 'Decline'], `${tab}: the picked row's detail holds its decision`);
@@ -208,7 +208,7 @@ test('spec rows read as a list, decided in the panel [N26]', { timeout: 300_000
assert.equal(await chrome.stable(`view.row['${kind}']`), first, `${tab}: and up moves it back`);
await pressKey('a', 'KeyA', 65);
const after = undecidedNow[undecidedNow.findIndex(([id]) => id === first) + 1][0];
- await chrome.waitFor(`!!document.querySelector('#${kind}-list .spec-feedback.ok') && view.row['${kind}'] === '${after}'`, 15_000);
+ await chrome.waitFor(`!!document.querySelector('#${kind}-list .spec-feedback.ok') && view.row['${kind}'] === '${after}'`, 15_000); // budget: hang ceiling for the saved decision and next row selection; no throughput claim.
assert.deepEqual([await recorded(kind, first), await recorded(kind, second)], [{ stage: 'approved, pending apply', decided: 'approved' }, { stage: 'draft', decided: null }],
`${tab}: A approved the picked ${first}, and only ${first}`);
assert.equal(await chrome.stable(`document.activeElement === document.querySelector('#${kind}-list')`), true, `${tab}: the list keeps focus for the next key`);
@@ -222,14 +222,14 @@ test('spec rows read as a list, decided in the panel [N26]', { timeout: 300_000
assert.deepEqual(await recorded(kind, second), { stage: 'draft', decided: null }, `${tab}: and decides nothing`);
await chrome.send('Input.insertText', { text: ' clearer outcome, please' });
await chrome.click("document.querySelector('#spec-decline-submit')");
- await chrome.waitFor(`document.querySelector('#spec-decline-dialog').hidden && !!document.querySelector('#${kind}-list .spec-feedback.ok')`, 15_000);
+ await chrome.waitFor(`document.querySelector('#spec-decline-dialog').hidden && !!document.querySelector('#${kind}-list .spec-feedback.ok')`, 15_000); // budget: hang ceiling for the saved decline and dialog close; no throughput claim.
assert.deepEqual(await recorded(kind, second), { stage: 'declined, pending apply', decided: 'a clearer outcome, please' }, `${tab}: D declined ${second} with its reason`);
// The last layout decides the last two drafts, so only the earlier ones have a row after them to stay untouched.
if (third) assert.deepEqual(await recorded(kind, third), { stage: 'draft', decided: null }, `${tab}: and nothing else`);
assert.equal(await chrome.stable(`document.activeElement === document.querySelector('#${kind}-list')`), true, `${tab}: the dialog returns to the list`);
// The two decided rows leave Needs your decision.
expected[kind].decide = undecidedNow.filter(([id]) => id !== first && id !== second);
- await chrome.waitFor(`![...document.querySelectorAll('#${kind}-list .srow')].some((row) => ['${kind}:${first}', '${kind}:${second}'].includes(row.dataset.row))`, 15_000);
+ await chrome.waitFor(`![...document.querySelectorAll('#${kind}-list .srow')].some((row) => ['${kind}:${first}', '${kind}:${second}'].includes(row.dataset.row))`, 15_000); // budget: hang ceiling for decided rows to leave Needs; no throughput claim.
// Under All rows, every row not approved says what it is.
await filter(kind, 'all');
@@ -421,7 +421,7 @@ test('the spec decision wait names its state on timeout [N26]', { timeout: 60_00
await chrome.waitFor("view.row.spec === 'G2'");
let timeout;
- try { await diagnostics.waitFor('false', 10); } catch (error) { timeout = error; }
+ try { await diagnostics.waitFor('false', 10); } catch (error) { timeout = error; } // budget: declared 10 ms negative timeout diagnostic deadline.
assert.match(timeout?.message ?? '', /Browser condition did not arrive: false/, 'the test deliberately drives the real wait helper to timeout');
assert.deepEqual(timeout.diagnostic.selectedRow, 'G2', 'the timeout record names the currently selected row');
assert.equal(timeout.diagnostic.focusedElement.id, 'spec-list', 'the timeout record names the focused list');