mirror of
https://github.com/codewhale-hq/Codewhale.git
synced 2026-11-08 08:04:25 -10:00
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:
1 parent
e4867e34ad
commit
6084a025bb
1 file changed
+2
-2
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user