state-hub/dashboard/test/terminology-nav.test.mjs
tegwick b2264d1f06
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 2s
feat(terminology): workplan-first dashboard and retirement backlog (STATE-WP-0069)
Add the ranked legacy-interface backlog (T01), rename dashboard navigation and
user-facing copy to workplan while preserving wire-compat API keys (T02), and
activate the retirement workplan with T01/T02 marked done.
2026-07-08 16:11:03 +02:00

21 lines
No EOL
844 B
JavaScript

import assert from "node:assert/strict";
import {readFileSync} from "node:fs";
import test from "node:test";
import {fileURLToPath} from "node:url";
import {dirname, join} from "node:path";
const root = join(dirname(fileURLToPath(import.meta.url)), "..");
const config = readFileSync(join(root, "observablehq.config.js"), "utf8");
const indexMd = readFileSync(join(root, "src/index.md"), "utf8");
test("dashboard navigation uses workplan labels", () => {
assert.match(config, /name: "Workplans"/);
assert.doesNotMatch(config, /name: "Workstreams"/);
});
test("overview page uses workplan-first user-facing copy", () => {
assert.match(indexMd, /## Workplans by Repository/);
assert.match(indexMd, /Active Workplans/);
assert.doesNotMatch(indexMd, /No active workstreams\./);
assert.doesNotMatch(indexMd, /Active Workstreams/);
});