Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

test: 同步归档提醒点相关的源码断言

Dash6197aa08bcf6
diff --git a/apps/desktop/src/renderer/__tests__/projectsSidebarSection.test.ts b/apps/desktop/src/renderer/__tests__/projectsSidebarSection.test.ts
index 67d00f03d4..f990a0e598 100644
--- a/apps/desktop/src/renderer/__tests__/projectsSidebarSection.test.ts
+++ b/apps/desktop/src/renderer/__tests__/projectsSidebarSection.test.ts
@@ -94,7 +94,11 @@ describe('Projects sidebar section', () => {
expect(headerSource).not.toContain(
'group-focus-within/sidebar-header:pointer-events-auto',
);
- expect(headerSource).toContain('className={HEADER_ACTIONS_CLASS}');
+ // 折叠按钮始终只在 hover 时出现;筛选(整理侧边栏)按钮仅在查看「已归档」时常驻。
+ expect(headerSource).toContain('<div className={HEADER_HOVER_ACTION_CLASS}>');
+ expect(headerSource).toContain(
+ "filter.status === 'archived' ? undefined : HEADER_HOVER_ACTION_CLASS",
+ );
});
it('the project tree renders unconditionally (section collapse removed)', () => {
diff --git a/apps/mobile/src/__tests__/homeChromeMenusAndroid.test.ts b/apps/mobile/src/__tests__/homeChromeMenusAndroid.test.ts
index 8bd1cb5a76..5c886f48ee 100644
--- a/apps/mobile/src/__tests__/homeChromeMenusAndroid.test.ts
+++ b/apps/mobile/src/__tests__/homeChromeMenusAndroid.test.ts
@@ -137,7 +137,8 @@ describe("Android home chrome menus follow the iOS pull-down", () => {
const nativeHeader = readSource("src/platform/chrome/HomeNativeStackHeader.tsx");
expect(nativeHeader).toContain("export const HomeNativeStackHeader = memo(");
// 三层菜单(分组 → 选项)只能走 Stack.Toolbar.Menu;MenuView 的 iOS 原生层只转两层。
- expect(nativeHeader).toContain('<Stack.Toolbar.Menu icon="ellipsis"');
+ expect(nativeHeader).toMatch(/<Stack\.Toolbar\.Menu\s+icon=\{displayBadge \? homeDisplayAttentionIcon/);
+ expect(nativeHeader).toContain("homeDisplayIcon");
});
it("opens Teammates from both scope menus through the teammate home path", () => {