From d41aaddd0e574ab6c357252f4f19a4d94813f920 Mon Sep 17 00:00:00 2001 From: kdletters Date: Wed, 26 Aug 2026 20:30:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=81=B5=E6=84=9F=E5=9B=BE?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=95=B0=E9=87=8F=E8=80=A6=E5=90=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 改为校验内置灵感图片非空,避免测试绑定具体资源数量。 --- apps/ai-game-creator-shell/tests/appSurface/home.suite.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/ai-game-creator-shell/tests/appSurface/home.suite.ts b/apps/ai-game-creator-shell/tests/appSurface/home.suite.ts index 6be9b73a8..db356ee08 100644 --- a/apps/ai-game-creator-shell/tests/appSurface/home.suite.ts +++ b/apps/ai-game-creator-shell/tests/appSurface/home.suite.ts @@ -36,7 +36,7 @@ export function registerClientHomeTests() { const inspirationImages = within(inspiration).getAllByRole('button', { name: /查看灵感图片/, }); - expect(inspirationImages).toHaveLength(23); + expect(inspirationImages.length).toBeGreaterThan(0); expect(inspiration.closest('.overflow-y-auto')).not.toBeNull(); expect(screen.queryByText('暂无灵感')).toBeNull();