fix(ui): add role=menuitem to sidebar nav items for e2e tests

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Krrish Dholakia 2026-07-07 16:30:53 +00:00
parent cf77c9c299
commit 7a774a67a9

View file

@ -427,6 +427,7 @@ function NavItem({
const content = (
<a
role="menuitem"
href={href}
target={isExternal ? "_blank" : undefined}
rel={isExternal ? "noopener noreferrer" : undefined}
@ -498,6 +499,7 @@ function CollapsibleNavItem({
<CollapsibleTrigger asChild>
<button
type="button"
role="menuitem"
className={cn(
"flex items-center gap-2 h-8 py-1.5 px-2 rounded-md text-[13px] transition-colors w-full",
"hover:bg-sidebar-accent text-sidebar-foreground/70",