fabro/apps/fabro-web/app/routes/setup.test.ts
Bryan Helmkamp 7d7931e56a
feat(web): show GitHub App install return state on /setup
When GitHub redirects back to /setup after installing the app, render a
distinct view that confirms the install and points users to retry the
run, instead of the first-time terminal setup instructions.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-29 10:41:28 -04:00

20 lines
622 B
TypeScript

import { describe, expect, test } from "bun:test";
import { setupContentForSearch } from "./setup";
describe("setupContentForSearch", () => {
test("explains GitHub App installation returns separately from first-time setup", () => {
const content = setupContentForSearch(
"?installation_id=128003036&setup_action=install",
);
expect(content.title).toBe("GitHub App installed");
expect(content.description).toContain(
"GitHub finished installing the app",
);
expect(content.steps.map((step) => step.title)).toEqual([
"Return to Fabro",
"Retry the run",
]);
});
});