From 061d4009eeb2f307511783141cca86299c8b1591 Mon Sep 17 00:00:00 2001 From: t8y2 Date: Sun, 13 Sep 2026 13:30:14 +0800 Subject: [PATCH] fix(ui): align apptabbar spec with unified special tab styles --- apps/desktop/src/components/layout/__tests__/AppTabBar.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/desktop/src/components/layout/__tests__/AppTabBar.spec.ts b/apps/desktop/src/components/layout/__tests__/AppTabBar.spec.ts index c3908d039a..9f6dd3a33a 100644 --- a/apps/desktop/src/components/layout/__tests__/AppTabBar.spec.ts +++ b/apps/desktop/src/components/layout/__tests__/AppTabBar.spec.ts @@ -84,7 +84,8 @@ describe("Group strip special page tabs", () => { expect(groupTabBarSource).toContain("return !specialPageActive.value && tab.id === props.activeTabId;"); expect(groupTabBarSource).toContain("specialPageTabClass(!!specialPageTabs?.settingsActive)"); expect(groupTabBarSource).toContain("specialPageTabClass(!!specialPageTabs?.driverStoreActive)"); - expect(groupTabBarSource).toContain('return active ? { boxShadow: "inset 0 -2px 0 var(--ring)" } : undefined;'); + expect(groupTabBarSource).toContain("if (!active) return undefined;"); + expect(groupTabBarSource).toContain('return { "--app-tab-background": activeBackground, boxShadow: "inset 0 -2px 0 color-mix(in srgb, var(--foreground) 72%, transparent)" };'); expect(groupTabBarSource).toContain('import "./appTabBar.css"'); expect(groupTabBarSource).toContain("dirty-tab-marker"); expect(groupTabBarSource).toContain("dirtyTabTitleStyle");