From f496df9de87453ed6d4a165b414ee3194a388317 Mon Sep 17 00:00:00 2001 From: Lifei Zhou Date: Wed, 25 Feb 2026 20:50:55 +1100 Subject: [PATCH] clean up --- ui/desktop/playwright.config.ts | 6 +-- .../components/Layout/CondensedRenderer.tsx | 9 ++++- .../components/Layout/ExpandedRenderer.tsx | 5 ++- .../src/components/Layout/navigation/index.ts | 1 + .../components/Layout/navigation/testIds.ts | 3 ++ ui/desktop/tests/e2e/app.spec.ts | 37 +++++-------------- 6 files changed, 28 insertions(+), 33 deletions(-) create mode 100644 ui/desktop/src/components/Layout/navigation/testIds.ts diff --git a/ui/desktop/playwright.config.ts b/ui/desktop/playwright.config.ts index 0beb7b431b..196b8180fd 100644 --- a/ui/desktop/playwright.config.ts +++ b/ui/desktop/playwright.config.ts @@ -4,7 +4,7 @@ const config: PlaywrightTestConfig = { testDir: './tests/e2e', timeout: 60000, expect: { - timeout: 30000 + timeout: 10000 }, fullyParallel: false, workers: 1, @@ -13,7 +13,7 @@ const config: PlaywrightTestConfig = { ['list'] ], use: { - actionTimeout: 30000, + actionTimeout: 10000, navigationTimeout: 30000, video: 'on', screenshot: 'only-on-failure' @@ -22,4 +22,4 @@ const config: PlaywrightTestConfig = { preserveOutput: 'always' }; -export default config; \ No newline at end of file +export default config; diff --git a/ui/desktop/src/components/Layout/CondensedRenderer.tsx b/ui/desktop/src/components/Layout/CondensedRenderer.tsx index 9f1713acb4..290c5244dc 100644 --- a/ui/desktop/src/components/Layout/CondensedRenderer.tsx +++ b/ui/desktop/src/components/Layout/CondensedRenderer.tsx @@ -3,7 +3,7 @@ import { GripVertical, ChevronDown, ChevronRight, Plus } from 'lucide-react'; import { motion } from 'framer-motion'; import { cn } from '../../utils'; import { DropdownMenu, DropdownMenuTrigger } from '../ui/dropdown-menu'; -import { ChatSessionsDropdown, SessionsList } from './navigation'; +import { ChatSessionsDropdown, SessionsList, getSidebarButtonTestId } from './navigation'; import type { NavigationRendererProps } from './navigation/types'; export const CondensedRenderer: React.FC = ({ @@ -76,6 +76,7 @@ export const CondensedRenderer: React.FC = ({ const isDragging = drag.draggedItem === item.id; const isDragOver = drag.dragOverItem === item.id; const isChatItem = item.id === 'chat'; + const navButtonTestId = getSidebarButtonTestId(item.id); return ( = ({