Skip to content

Commit 6617d8b

Browse files
test: cover onboarding company name label
Co-Authored-By: Paperclip <noreply@paperclip.ing>
1 parent 1b76f45 commit 6617d8b

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { describe, expect, it } from "vitest";
2+
import { COMPANY_NAME_FIELD_LABEL } from "./OnboardingWizard";
3+
4+
describe("OnboardingWizard", () => {
5+
it("uses the concise company name field label", () => {
6+
expect(COMPANY_NAME_FIELD_LABEL).toBe("Name");
7+
});
8+
});

ui/src/components/OnboardingWizard.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ type Step = 0 | 1 | 2 | 3 | 4 | 5;
6666
// wizard's registry-driven approach rather than a fixed union.
6767
type AdapterType = string;
6868

69+
export const COMPANY_NAME_FIELD_LABEL = "Name";
70+
6971
const MISSION_PROMPT_CHIPS = [
7072
"Build a SaaS product",
7173
"Scale a content business",
@@ -988,7 +990,7 @@ export function OnboardingWizard() {
988990
: "text-muted-foreground group-focus-within:text-foreground"
989991
)}
990992
>
991-
Name
993+
{COMPANY_NAME_FIELD_LABEL}
992994
</label>
993995
<input
994996
className="w-full rounded-md border border-border bg-transparent px-3 py-2 text-sm outline-none focus:ring-1 focus:ring-ring placeholder:text-muted-foreground/50"

0 commit comments

Comments
 (0)