From 2cad75a2175b417726320c210e97fe45a9af9cb8 Mon Sep 17 00:00:00 2001 From: Chinesezjc Date: Fri, 31 Jul 2026 10:59:43 +0800 Subject: [PATCH] =?UTF-8?q?test(client-ui-conversation):=20assert=20locali?= =?UTF-8?q?zed=20=E8=BE=93=E5=87=BA=20section=20title=20in=20web-card=20pa?= =?UTF-8?q?nel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit master's locale rollout renders the details Output section title through t('details.output') (输出 under the zh seat the test uses). The spec still asserted the English 'Output' literal and failed. Match the sibling terminal-card suite's localized assertion. --- packages/client/ui-conversation/tests/web-card.spec.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/ui-conversation/tests/web-card.spec.tsx b/packages/client/ui-conversation/tests/web-card.spec.tsx index 69df3e5fbf..cea95e61f6 100644 --- a/packages/client/ui-conversation/tests/web-card.spec.tsx +++ b/packages/client/ui-conversation/tests/web-card.spec.tsx @@ -234,7 +234,7 @@ describe('DetailsPanel web Output section', () => { expect(view.getByText('HTTP 200')).toBeTruthy() // The card is a summary (URL + status only); the panel is the single-call // reading surface, so the fetched body still renders below the card. - const output = view.getByText('Output').closest('section') + const output = view.getByText('输出').closest('section') expect(output?.querySelector('pre')?.textContent).toContain('fetch body') }) @@ -243,7 +243,7 @@ describe('DetailsPanel web Output section', () => { nodes: [settledSearch({ callView: null, resultView: null })], }), { turnSeq: 10, callId: 'c1', toolName: 'web_search' }) expect(view.container.querySelector('[data-web]')).toBeNull() - const output = view.getByText('Output').closest('section') + const output = view.getByText('输出').closest('section') expect(output?.querySelector('pre')?.textContent).toContain('search text') }) })