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
/** @pullboard-test-gui */
/** Real roadmap capacity labels remain visible for active, empty and shipped milestones [N26]. */
import assert from 'node:assert/strict';
import { mkdtempSync, rmSync } from 'node:fs';
import { tmpdir } from 'node:os';
import { join } from 'node:path';
import { test } from 'node:test';
import { machine, project, startView, chromeExecutable, openSnapshotChrome, closeSnapshotChrome, press } from './fixture.js';
test('the view shows milestone count against its limit including empty and shipped plans [N26]', { timeout: 90_000 }, async () => {
const executable = chromeExecutable();
assert.ok(executable, 'Chrome is required for milestone capacity labels.');
const box = machine(), alpha = project(box, 'milestone-caps');
box.run(alpha.repo, 'add', 'web', 'Release work', '--specs', 'G1', '--criterion', 'Ready.');
box.run(alpha.repo, 'milestone', 'add', 'Active', '--items', '1');
box.run(alpha.repo, 'milestone', 'edit', 'Active', '--limit', '2');
for (const name of ['Empty', 'Shipped']) {
box.run(alpha.repo, 'milestone', 'add', name);
box.run(alpha.repo, 'milestone', 'edit', name, '--limit', '0');
}
box.run(alpha.repo, 'milestone', 'ship', 'Shipped');
box.run(alpha.repo, 'milestone', 'add', 'Unlimited');
const view = await startView(box), profile = mkdtempSync(join(tmpdir(), 'pullboard-capacity-chrome-'));
let chrome;
try {
chrome = await openSnapshotChrome(executable, view.link.href, profile);
await chrome.waitFor("document.querySelector('[data-tab=roadmap]')");
await press(chrome, "document.querySelector('[data-tab=roadmap]')");
await chrome.waitFor("document.querySelector('[data-key=\"m:Active\"] .milestone-limit')");
for (const width of [375, 1280]) {
await chrome.send('Emulation.setDeviceMetricsOverride', { width, height: 900, deviceScaleFactor: 1, mobile: false });
const labels = JSON.parse(await chrome.stable(`JSON.stringify(['Active','Empty','Shipped','Unlimited'].map(name => document.querySelector('[data-key="m:'+name+'"] .milestone-limit')?.textContent ?? null))`));
assert.deepEqual(labels, ['1/2 items', '0/0 items', '0/0 items', null], String(width));
}
assert.deepEqual(chrome.exceptions, []);
} finally {
if (chrome) await closeSnapshotChrome(chrome);
await view.stop();
rmSync(profile, { recursive: true, force: true });
}
});