diff --git a/tests/unit/runtime-host.test.ts b/tests/unit/runtime-host.test.ts index f1f07916..1c488d39 100644 --- a/tests/unit/runtime-host.test.ts +++ b/tests/unit/runtime-host.test.ts @@ -191,7 +191,7 @@ describe("RuntimeHost", () => { message: null }); expect(runtimeMessages).toContain( - "Third Person active. Drag to orbit the camera, use the right stick for gamepad camera look, move with your authored bindings, and scroll to zoom." + "Third Person active. Click inside the runner viewport to capture mouse look, or drag to orbit if pointer lock is unavailable. Scroll to zoom and use the right stick for gamepad camera look." ); }); @@ -3778,7 +3778,14 @@ describe("RuntimeHost", () => { enableRendering: false }); const runtimeScene = buildRuntimeSceneFromDocument( - createEmptySceneDocument(), + { + ...createEmptySceneDocument(), + entities: { + "entity-player-start-switch": createPlayerStartEntity({ + id: "entity-player-start-switch" + }) + } + }, { navigationMode: "firstPerson" } diff --git a/tests/unit/third-person-navigation-controller.test.ts b/tests/unit/third-person-navigation-controller.test.ts index 0352e9be..c15da1b6 100644 --- a/tests/unit/third-person-navigation-controller.test.ts +++ b/tests/unit/third-person-navigation-controller.test.ts @@ -194,6 +194,7 @@ describe("ThirdPersonNavigationController", () => { }); controller.activate(context); + document.dispatchEvent(new Event("pointerlockchange")); document.dispatchEvent(mouseMoveEvent); controller.update(0);