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
test(e2e): request full state for ground truth [N26,A2]
Corey Olson9609135dbcbb
diff --git a/test/e2e-helpers.js b/test/e2e-helpers.jsindex d9f50b02..bcb8fc23 100644--- a/test/e2e-helpers.js+++ b/test/e2e-helpers.js@@ -202,13 +202,13 @@ async function startView(box, cwd) {const response = await fetchFresh(`${base}/api/v1/boards`, { headers });return { status: response.status, document: await response.json() };};- /** Resolve a registered board id and read its public state. */+ /** Resolve a registered board id and read full public state for test ground truth. */const state = async (root) => {const listing = await boards();if (listing.status !== 200) return listing;const board = listing.document.boards.find((entry) => entry.root === root);if (!board) return { ...listing.document, project: null };- const response = await fetchFresh(`${base}/api/v1/boards/${encodeURIComponent(board.id)}/state`, { headers });+ const response = await fetchFresh(`${base}/api/v1/boards/${encodeURIComponent(board.id)}/state?detail=full`, { headers });return { ...listing.document, project: (await response.json()).state };};/** Send a public move to the registered board or a deliberately unknown id. */diff --git a/test/e2e-view.test.js b/test/e2e-view.test.jsindex ccc54214..1d879602 100644--- a/test/e2e-view.test.js+++ b/test/e2e-view.test.js@@ -346,9 +346,18 @@ test('the view keeps the board layout people know: switcher, tabs, a list and it}});-test('the view rebuilds the page only when the board changed, so a refresh cannot swallow a click [N26]', () => {+test('the view rebuilds only changed boards and refreshes deferred item detail [N26,A2]', () => {const page = cockpitSource();- assert.match(page, /if \(text !== seen\) \{\s*seen = text;\s*data = next;\s*render\(\);\s*\}/);+ const start = page.indexOf('async function refresh(');+ const end = page.indexOf('\n// The local view follows', start);+ const refresh = page.slice(start, end);+ assert.match(refresh, /if \(text !== seen\) \{\s*seen = text;\s*data = next;(?:\s*itemSearches\.clear\(\);\s*const reading = detailRead;)?\s*render\(\);(?:\s*if \(detailRead !== reading\) await detailRead;)?\s*\}/);+ // Full-state APIs need no detail follow-up; summary-state APIs must invalidate search results and+ // finish any item detail request started by the render before refresh completes.+ if (page.includes('const itemSearches = new Map();')) {+ assert.match(refresh, /itemSearches\.clear\(\);/);+ assert.match(refresh, /const reading = detailRead;\s*render\(\);\s*if \(detailRead !== reading\) await detailRead;/);+ }});test('doctrine init preserves legacy rules and outside guidance, refreshes labels and refuses empty declines [D1,D2,D3,D4,S8]', () => {