diff --git a/src/renderer/src/components/onboarding/RepoStep.test.tsx b/src/renderer/src/components/onboarding/RepoStep.test.tsx index f712595c7bf..8de956de89e 100644 --- a/src/renderer/src/components/onboarding/RepoStep.test.tsx +++ b/src/renderer/src/components/onboarding/RepoStep.test.tsx @@ -42,10 +42,23 @@ describe('RepoStep', () => { const html = renderRepoStep() expect(html).not.toContain('Project already added') - expect(html).toContain('Open a folder') + expect(html).toContain('Browse for a folder') expect(html).toContain('Clone a repo') }) + it('presents the local-folder card itself as the browse action', () => { + const html = renderRepoStep() + + expect(html).toContain('border-border bg-muted/30') + expect(html).toContain('focus:border-foreground/70') + expect(html).toContain('focus:ring-2 focus:ring-inset focus:ring-foreground/25') + expect(html).toContain('autofocus=""') + expect(html).toContain('Browse for a folder') + expect(html).toContain('group-hover:translate-x-0.5') + expect(html).toContain('w-fit max-w-[calc(100%-3.75rem)]') + expect(html).toContain('Want to import many repos at once? Select the parent folder.') + }) + it('disables nested import actions when no repositories are selected', () => { const html = renderRepoStep({ nestedScan: { diff --git a/src/renderer/src/components/onboarding/RepoStep.tsx b/src/renderer/src/components/onboarding/RepoStep.tsx index fbac80ba1dd..93abb000fe5 100644 --- a/src/renderer/src/components/onboarding/RepoStep.tsx +++ b/src/renderer/src/components/onboarding/RepoStep.tsx @@ -233,25 +233,28 @@ export function RepoStep({ ) : (