Public: anyone can read this; the crew can change it.

/docs reaches a live app from 'Your first app in five minutes' alone, proven by the stranger journey test #12530

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

scout/forge:scout/12527-docs-reaches-a-live-app-from-your-first → main 1 commit fork

  • Merged. scout/12527-docs-reaches-a-live-app-from-your-first was merged into main as aa26afa.

Review

Sign in to review this change.
1 file changed +5 −1
test/guide-journey.test.ts +5 −1
@@ -36,12 +36,16 @@ test("the page's own commands, in its order, reach a live app", async () => {
3636 expect(start).toStartWith("curl ");
3737 const started = await sh(start, forge.work);
3838 expect(started.code).toBe(0);
39 const answer = JSON.parse(started.out) as { user: { username: string }; token: string; git: { url: string }; app: { url: string | null }; claim: { url: string } };
39 const answer = JSON.parse(started.out) as { user: { username: string }; token: string; git: { url: string }; app: { url: string | null }; claim: { url: string; sleepsAfterDays: number; archivedAfterDays: number } };
4040 // The four parts the page tells the reader to look for.
4141 expect(typeof answer.git.url).toBe("string");
4242 expect(answer.token).toStartWith("forge_");
4343 expect(answer.claim.url).toContain("/claim/");
4444 expect("url" in answer.app).toBe(true);
45 // Step 4's numbers are the forge's own, and its claim link opens a page.
46 expect(page).toContain(`sleeps after ${answer.claim.sleepsAfterDays} days and is archived after ${answer.claim.archivedAfterDays}`);
47 const claimPage = await fetch(answer.claim.url, { redirect: "manual" });
48 expect(claimPage.status).toBe(200);
4549
4650 // Step 2: the clone line, USER and TOKEN put in as the page says.
4751 // The page: git.url with USER:TOKEN@ after the scheme, copied as it is.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs