From 760295dcd83840df74302de52b0554ea7f83ae0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E5=91=98=E9=98=BF=E6=B1=9F=28Relakkes?= =?UTF-8?q?=29?= Date: Thu, 4 Jun 2026 23:28:11 +0800 Subject: [PATCH] test(desktop): update chatBlocks thinking assertions to the done-state label MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Commit 449ff0b0 changed completed thinking blocks to render the 'thinking.labelDone' title ("Thought"/"已思考") instead of the static "Thinking" label, and updated ThinkingBlock.test.tsx but not chatBlocks.test.tsx. The three inactive/default-state cases there still queried the toggle button by /Thinking/ and failed. Match the new done-state label (/Thought/); the active-state case is unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) --- desktop/src/components/chat/chatBlocks.test.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/desktop/src/components/chat/chatBlocks.test.tsx b/desktop/src/components/chat/chatBlocks.test.tsx index 25e41d3c..2b2e0c0d 100644 --- a/desktop/src/components/chat/chatBlocks.test.tsx +++ b/desktop/src/components/chat/chatBlocks.test.tsx @@ -25,7 +25,7 @@ describe('chat blocks', () => { it('does not animate inactive historical thinking blocks', () => { const { container } = render() - fireEvent.click(screen.getByRole('button', { name: /Thinking/ })) + fireEvent.click(screen.getByRole('button', { name: /Thought/ })) expect(container.textContent).toContain('old reasoning') expect(container.querySelector('.thinking-cursor')).toBeNull() @@ -38,7 +38,7 @@ describe('chat blocks', () => { expect(container.querySelector('strong')).toBeNull() expect(container.querySelector('li')).toBeNull() - fireEvent.click(screen.getByRole('button', { name: /Thinking/ })) + fireEvent.click(screen.getByRole('button', { name: /Thought/ })) expect(container.querySelector('strong')?.textContent).toBe('important') expect(container.querySelector('li')?.textContent).toBe('item one') @@ -51,7 +51,7 @@ describe('chat blocks', () => { expect(container.textContent).not.toContain('line-1') expect(container.textContent).not.toContain('line-11') - fireEvent.click(screen.getByRole('button', { name: /Thinking/ })) + fireEvent.click(screen.getByRole('button', { name: /Thought/ })) expect(container.textContent).toContain('line-1') expect(container.textContent).toContain('line-11')