import { renderToStaticMarkup } from 'react-dom/server' import { describe, it, expect } from 'vitest' import { QAWeekly } from './QAWeekly' describe('weekly report editor surface', () => { it('provides a weekly document editor, automatic-save status and a preview without an external-send action', () => { const html = renderToStaticMarkup() expect(html).toContain(']*>' + label + '')) expect(html).not.toContain('qa-weekly-mode') expect(html).toContain('复制排版内容') expect(html).not.toContain('下载 MD') expect(html).not.toContain('下载明细 CSV') expect(html).not.toContain('复制 Markdown 原文') expect(html).not.toContain('发送周报') expect(html).not.toContain('发布周报') }) })