From 944d2aa3dbf7ad8ffb4fcc0057c74d4bba7e79d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Fri, 18 Sep 2026 21:14:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20UI=20=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E5=99=A8=E8=BF=94=E5=9B=9E=E4=BA=A4=E4=BA=92=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=20=E6=8C=89=E7=8E=B0=E5=BD=B9=E6=B5=AE=E5=8A=A8=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E6=8C=89=E9=92=AE=E7=9A=84=E5=8F=AF=E8=AE=BF=E9=97=AE?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tests/appSurface/project-development.suite.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/ai-game-creator-shell/tests/appSurface/project-development.suite.ts b/apps/ai-game-creator-shell/tests/appSurface/project-development.suite.ts index 315be4d4c..3ecff2287 100644 --- a/apps/ai-game-creator-shell/tests/appSurface/project-development.suite.ts +++ b/apps/ai-game-creator-shell/tests/appSurface/project-development.suite.ts @@ -6140,10 +6140,12 @@ export function registerProjectWorkbenchFoundationTests() { }), ); fireEvent.click(await screen.findByRole('button', { name: 'UI 编辑器' })); - await screen.findByRole('button', { name: '返回资源' }); - fireEvent.click(screen.getByRole('button', { name: '返回资源' })); + await screen.findByRole('button', { name: '关闭 UI 编辑器' }); + fireEvent.click(screen.getByRole('button', { name: '关闭 UI 编辑器' })); await waitFor(() => - expect(screen.queryByRole('button', { name: '返回资源' })).toBeNull(), + expect( + screen.queryByRole('button', { name: '关闭 UI 编辑器' }), + ).toBeNull(), ); const restoredCanvas = await screen.findByRole('region', {