From e4e1411a5cb77fcb59838ab94f7b01de6dfd5388 Mon Sep 17 00:00:00 2001 From: Tianyi Cui <53024+tianyicui@users.noreply.github.com> Date: Wed, 21 Oct 2026 17:24:56 +0800 Subject: [PATCH] test(session-log-export): remove redundant label assertion Keep the rendered Header and browser scenarios as the copy-action coverage, and describe the backend converter as used by the Session Markdown copy Host route. --- packages/session-query/session-log-export/src/markdown.ts | 6 +++--- .../session-log-export/tests/header-action.client.spec.tsx | 7 +------ 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/packages/session-query/session-log-export/src/markdown.ts b/packages/session-query/session-log-export/src/markdown.ts index 84261bee39..4ebd1d6be4 100644 --- a/packages/session-query/session-log-export/src/markdown.ts +++ b/packages/session-query/session-log-export/src/markdown.ts @@ -1,7 +1,7 @@ /** - * Pure backend converter for one complete committed Session log. The "Copy as - * Markdown" Host route uses it, and the package entry exports it for callers - * that already hold the logical events. The raw log is authoritative: + * Pure backend converter for one complete committed Session log. The Session + * Markdown copy Host route uses it, and the package entry exports it for + * callers that already hold the logical events. The raw log is authoritative: * compaction surface replacements never remove earlier messages, and * fork-inherited history appears once. Reasoning, system and developer * messages, injected non-human context, request headers, and runtime records diff --git a/packages/session-query/session-log-export/tests/header-action.client.spec.tsx b/packages/session-query/session-log-export/tests/header-action.client.spec.tsx index 462064fbad..a8e6321b1a 100644 --- a/packages/session-query/session-log-export/tests/header-action.client.spec.tsx +++ b/packages/session-query/session-log-export/tests/header-action.client.spec.tsx @@ -9,7 +9,7 @@ import { SessionLogDownloadController } from '../src/client/controller.ts' import { SessionMarkdownCopyController, type SessionMarkdownClipboard } from '../src/client/copy-controller.ts' import { SessionLogDownloadHeaderAction } from '../src/client/HeaderAction.tsx' import type { SessionLogDownloadHeaderProps } from '../src/client/HeaderAction.tsx' -import { en, zh } from '../src/client/locales.ts' +import { en } from '../src/client/locales.ts' const SID = 'session-export-header' as SessionId const clipboard: SessionMarkdownClipboard = { @@ -69,11 +69,6 @@ function bench(feedbackAvailable = false, copyController = new SessionMarkdownCo afterEach(cleanup) describe('Session export Header action', () => { - it('names whole-Session copying in English and Chinese', () => { - expect(en['menu.copyMarkdown']).toBe('Copy Session as Markdown') - expect(zh['menu.copyMarkdown']).toBe('复制会话为 Markdown') - }) - it('opens Session feedback and closes the menu without starting a download', () => { const b = bench(true) fireEvent.click(b.view.getByRole('button', { name: 'More actions' }))