test(web): first-launch guide check follows the composer-first wording

Predecessor: the 'asks only for decisions' assertion in vocabulary.test.ts, which
pinned the pre-composer-first GUIDE paragraph and failed Web Frontend CI on
e4867e34ad. vocabulary.test.ts: 11 passed, 0 failed.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
CodeWhale BotandClaude Sonnet 5.5 committed 2026-10-10 03:42:08 -07:00
1 parent e4867e34ad
commit 6084a025bb
1 file changed
+2 -2
+2 -2
View File
@@ -120,7 +120,7 @@ describe("shared getting-started path", () => {
it("keeps offline setup documented without requiring it before a first task", () => {
// The keyless-launch claim must stay backed by documented runtime
// behavior. Assert the meaning docs/GUIDE.md owes this step -- a first
// launch that asks only for the decisions still needed, and a provider
// launch that opens the composer before any decision, and a provider
// step that keeps an explicit offline route -- rather than one frozen
// sentence, which is what broke when the first-run flow was rewritten.
// Heading-level hashes only: shell comments inside the fenced install
@@ -128,7 +128,7 @@ describe("shared getting-started path", () => {
const guide = repoText("docs/GUIDE.md");
const firstLaunch = guide.split(/^#{2,} .*First Launch.*$/m)[1]?.split(/^#{2,} /m)[0] ?? "";
expect(firstLaunch, "docs/GUIDE.md must keep a First Launch section").not.toBe("");
expect(firstLaunch).toMatch(/asks only for decisions/i);
expect(firstLaunch).toMatch(/opens the composer/i);
expect(firstLaunch).toMatch(/offline route/i);
});