import test from "node:test"; import assert from "node:assert/strict"; import { readFile } from "node:fs/promises"; import { sectionOrder } from "../src/scripts/section-order.mjs"; const read = (name) => readFile( new URL("../src/sections/" + name + ".html", import.meta.url), "utf8", ); test("reference layout keeps the requested sequence and puts hero actions above its board", async () => { assert.deepEqual(sectionOrder, [ "hero", "workflow", "video", "selector", "agent", "prepared", "context", "progression", "stats", "modules", "closing", ]); const hero = await read("hero"); assert.ok(hero.indexOf("splash-actions") < hero.indexOf("splash-screen")); const video = await read("video"); assert.ok(video.includes("Insert video here")); assert.ok(!video.includes("