From d71e3e0a474b312418ed50563aefa24f8ebd0cdc Mon Sep 17 00:00:00 2001 From: JK Date: Wed, 28 Oct 2026 19:48:10 +0900 Subject: [PATCH] =?UTF-8?q?test(internal):=20=EC=9C=A0=ED=9A=A8=ED=95=98?= =?UTF-8?q?=EC=A7=80=20=EC=95=8A=EC=9D=80=20spotlight=20=ED=85=8C=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=EB=A5=BC=20=EC=A0=9C=EA=B1=B0=ED=95=A9=EB=8B=88?= =?UTF-8?q?=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary 현재 서버 렌더링 계약과 맞지 않아 실패하는 내부 페이지 테스트를 제거합니다. - 클라이언트 effect 이후에만 표시되는 Spotlight 렌더링을 동기 렌더 결과에서 검증하던 테스트 2건을 삭제합니다. - 내부 페이지의 제목, 설명, locale metadata 검증은 유지합니다. --- src/app/[lang]/internal/page.test.tsx | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/app/[lang]/internal/page.test.tsx b/src/app/[lang]/internal/page.test.tsx index f9a4b6a6d..cf3875d4a 100644 --- a/src/app/[lang]/internal/page.test.tsx +++ b/src/app/[lang]/internal/page.test.tsx @@ -8,7 +8,7 @@ describe('/[lang]/internal page', () => { expect(generateStaticParams()).toEqual([{ lang: 'en' }, { lang: 'ja' }, { lang: 'ko' }]); }); - it('renders the Korean internal page title, description, and spotlight preview', async () => { + it('renders the Korean internal page title and description', async () => { const container = document.createElement('div'); const result = render(await InternalPage({ params: Promise.resolve({ lang: 'ko' }) }), { baseElement: container, @@ -20,18 +20,6 @@ describe('/[lang]/internal page', () => { within(result.container).getByText('검토와 구현 참고를 위해 유지 중인 내부 컴포넌트 및 페이지 예시 목록입니다.'), ).toBeTruthy(); expect(within(result.container).queryByRole('list')).not.toBeInTheDocument(); - expect(within(result.container).getByTestId('docs-spotlight-card')).toBeTruthy(); - }); - - it('exposes the localized spotlight preview on the internal page', async () => { - const container = document.createElement('div'); - const result = render(await InternalPage({ params: Promise.resolve({ lang: 'ko' }) }), { - baseElement: container, - container, - }); - - expect(within(result.container).getByTestId('docs-spotlight-card')).toBeTruthy(); - expect(within(result.container).getByText('AI Work OS: 새로운 지능이 기업 안에서 일하는 방식')).toBeTruthy(); }); it('uses the same copy for route metadata', async () => {