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.
This commit is contained in:
Tianyi Cui committed 2026-10-21 17:24:56 +08:00
1 parent 0ab1fcb674
commit e4e1411a5c
2 files changed
+4 -9

No files matched your search

@@ -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
@@ -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' }))