Skip to content

fix(mapgen-studio): wrap AppFooter test in TooltipProvider and add @ alias to vitest config#1612

Merged
mateicanavra merged 1 commit into
mainfrom
design/test-harness-fix
Jun 12, 2026
Merged

fix(mapgen-studio): wrap AppFooter test in TooltipProvider and add @ alias to vitest config#1612
mateicanavra merged 1 commit into
mainfrom
design/test-harness-fix

Conversation

@mateicanavra

Copy link
Copy Markdown
Owner

Wraps AppFooter in TooltipProvider within the test render helper, which is required now that the component uses shadcn tooltip primitives internally. Also adds a @/* path alias to the mapgen-studio vitest project config to mirror the app's TypeScript and Vite alias, allowing vitest to correctly resolve the components/ui@/lib/utils import chain used by shadcn components.

mateicanavra commented Jun 12, 2026

Copy link
Copy Markdown
Owner Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions

Copy link
Copy Markdown

Railway preview (MapGen Studio): not provisioned for this PR.

Policy (Graphite stacks): previews are created only for the top-of-stack PR by default.

  • To force a preview for this PR: add label railway-preview
  • To suppress a preview: add label no-railway-preview

Debug: {"isClosed":false,"isFork":false,"suppress":false,"force":false,"isTopOfStack":false,"hasToken":true,"draft":false}

This was referenced Jun 12, 2026

mateicanavra commented Jun 12, 2026

Copy link
Copy Markdown
Owner Author

Merge activity

  • Jun 12, 8:50 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Jun 12, 9:07 PM UTC: Graphite rebased this pull request as part of a merge.
  • Jun 12, 9:07 PM UTC: @mateicanavra merged this pull request with Graphite.

@mateicanavra
mateicanavra changed the base branch from design/app-shell to graphite-base/1612 June 12, 2026 21:04
@mateicanavra
mateicanavra changed the base branch from graphite-base/1612 to main June 12, 2026 21:05
…er harness

Fixes two test-infra regressions from the redesign stack:
- vitest.config.ts: add the @/* -> src alias to the mapgen-studio project so the
  shadcn components/ui -> @/lib/utils import chain resolves (regression from the
  design-system slice, which added @ to tsconfig + vite but not vitest).
- AppFooter.test.tsx: wrap the render in TooltipProvider (Radix Tooltip migration).

Remaining: 8 AppFooter assertions still red — they assert on diagnostic strings
(run requestId, failure reason) that the Radix Tooltip migration moved into
hover-only TooltipContent (absent from static markup AND from screen readers).
That is the a11y/parity gap the review flagged; its faithful fix (mirror the
diagnostic into the trigger aria-label, in-DOM) is queued for the P4 craft/a11y pass.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@mateicanavra
mateicanavra force-pushed the design/test-harness-fix branch from 43e4ec2 to a410a28 Compare June 12, 2026 21:06
@mateicanavra
mateicanavra merged commit 39bbdfb into main Jun 12, 2026
This was referenced Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant