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 dc4d77327..f8038aee6 100644 --- a/apps/ai-game-creator-shell/tests/appSurface/home.suite.ts +++ b/apps/ai-game-creator-shell/tests/appSurface/home.suite.ts @@ -296,6 +296,12 @@ export function registerClientHomeTests() { expect( screen.queryByRole('button', { name: /runtime-live-hero\.png/ }), ).toBeNull(); + await waitFor(() => { + expect(runtimeHarness.listen).toHaveBeenCalledWith( + 'game-creator-manifest-invalidated', + expect.any(Function), + ); + }); const manifestReadsBeforeEvent = invoke.mock.calls.filter( ([command]) => command === 'get_local_game_manifest', ).length; @@ -303,12 +309,6 @@ export function registerClientHomeTests() { ([command]) => command === 'inspect_local_project_directory', ).length; - await waitFor(() => { - expect(runtimeHarness.listen).toHaveBeenCalledWith( - 'game-creator-manifest-invalidated', - expect.any(Function), - ); - }); manifestChanged = true; act(() => { runtimeHarness.emitManifestInvalidated('art-asset-plan');