mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-07 08:27:12 +00:00
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>
20 lines
622 B
TypeScript
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",
|
|
]);
|
|
});
|
|
});
|