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

The front page's hero and terminal line draw §5's card and row, and .hero, .hero-terminal leave the markup #4184

Merged opened this

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

Merged

scout/forge:scout/4170-the-front-page-s-hero-and-terminal-line → main 3 commits fork 2 threads · 2 unresolved

  • Merged. scout/4170-the-front-page-s-hero-and-terminal-line was merged into main as 801e09d.

Review

Sign in to review this change.
1 file changed +20 −0
test/ssh-site.test.ts +20
@@ -97,3 +97,23 @@ describe("the terminal on the website", () => {
9797 expect(page).toContain('value="haiku"');
9898 });
9999 });
100
101 describe("the front page without a terminal", () => {
102 test("prints nothing about it and carries no hero classes", async () => {
103 const dataDir = await mkdtemp(join(tmpdir(), "forge-ssh-off-"));
104 const app = createApp({ dataDir, port: 0, host: "forge.example" });
105 const servers = await serve(app);
106 try {
107 const page = await fetch(`${servers.url}/`).then((r) => r.text());
108 expect(page).toContain("Apps, live.");
109 expect(page).toContain('href="/signup"');
110 expect(page).not.toContain("terminal-line");
111 expect(page).not.toContain("terminal is off");
112 expect(page).not.toContain("hero-terminal");
113 } finally {
114 servers.stop();
115 app.close();
116 await rm(dataDir, { recursive: true, force: true });
117 }
118 });
119 });

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs