Skip to content

test(webxr): cover control-panel positioning settings (depends on #1140) - #1141

Open
gareth-morgan-nv wants to merge 3 commits into
gmorgan/client-ui-mock-testsfrom
gmorgan/reset-panel-tests
Open

gareth-morgan-nv wants to merge 3 commits into
gmorgan/client-ui-mock-testsfrom
gmorgan/reset-panel-tests

Conversation

@gareth-morgan-nv

Copy link
Copy Markdown
Contributor

Summary

Adds ControlPanelPositionTest.spec.js covering the control-panel positioning/tracking work in #1140 (controlPanelPosition/Distance/Height/AngleDegrees settings, the R-key reset, and Track Headset mode).

This branch does NOT include #1140's code (deliberately) — its base is gmorgan/client-ui-mock-tests, not gmorgan/reset-panel-key. All 7 tests currently fail (red) against this base, since the settings elements and the [CloudXRUI] headset=... relative=... world=... console.debug line don't exist yet. They're expected to go green once #1140 merges and this branch is rebased onto it.

All assertions go through that single console.debug line — the only host-observable signal for where the panel actually ended up, since there's no other way to read a Three.js object's world position from outside the page.

Test plan

🤖 Generated with Claude Code

Adds ControlPanelPositionTest.spec.js against the real App.tsx +
MockCloudXR, covering the controlPanelPosition/Distance/Height/
AngleDegrees settings, the R-key reset, and Track Headset mode from
gmorgan/reset-panel-key - not yet merged into this branch's base
(gmorgan/client-ui-mock-tests), so all 7 tests currently fail here as
expected (missing settings elements, no panel-pose console.debug line).
Confirmed red against this branch; will go green once reset-panel-key
lands.

All assertions go through the single "[CloudXRUI] headset=... relative=...
world=..." console.debug line - the only host-observable signal for the
panel's actual world position, since there is no other way to read a
Three.js object's world position from outside the page.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: Gareth Morgan <gmorgan@nvidia.com>
@coderabbitai

coderabbitai Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository: NVIDIA/IsaacCapture/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 945e709f-5793-4771-b8ee-2b3c03d6729e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@gareth-morgan-nv gareth-morgan-nv self-assigned this Sep 28, 2026
gareth-morgan-nv added a commit that referenced this pull request Sep 28, 2026
Real coverage now lives in ControlPanelPositionTest.spec.js
(gmorgan/reset-panel-tests, #1141), against the actual fix
(gmorgan/reset-panel-key, #1140). This test only ever checked that
panelHiddenAtStart correctly drove the panelHidden state - it never
touched the real failure mode (panel/handle out of reach after the
operator moves), and its own comment already said as much. Keeping it
under this file's "state reproduction" framing was misleading about what
it actually covered.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: Gareth Morgan <gmorgan@nvidia.com>
gareth-morgan-nv and others added 2 commits September 28, 2026 20:24
…onTest too

Same fix as #1136 (commit 271a009, merged in from
gmorgan/client-ui-mock-tests): "IWER DevUI initialized with XR device."
logs before installRuntime() and is skipped on the supported no-DevUI
path - wait for LoadIWER.ts's "IWER runtime installed." instead. This
file's own tests remain intentionally red against this branch's base
(the reset-panel-key feature they cover isn't merged here yet) -
verified AppMockTest.spec.js still passes and lint/jest are clean.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: Gareth Morgan <gmorgan@nvidia.com>
gareth-morgan-nv added a commit that referenced this pull request Sep 29, 2026
Real coverage now lives in ControlPanelPositionTest.spec.js
(gmorgan/reset-panel-tests, #1141), against the actual fix
(gmorgan/reset-panel-key, #1140). This test only ever checked that
panelHiddenAtStart correctly drove the panelHidden state - it never
touched the real failure mode (panel/handle out of reach after the
operator moves), and its own comment already said as much. Keeping it
under this file's "state reproduction" framing was misleading about what
it actually covered.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: Gareth Morgan <gmorgan@nvidia.com>
gareth-morgan-nv added a commit that referenced this pull request Sep 29, 2026
Real coverage now lives in ControlPanelPositionTest.spec.js
(gmorgan/reset-panel-tests, #1141), against the actual fix
(gmorgan/reset-panel-key, #1140). This test only ever checked that
panelHiddenAtStart correctly drove the panelHidden state - it never
touched the real failure mode (panel/handle out of reach after the
operator moves), and its own comment already said as much. Keeping it
under this file's "state reproduction" framing was misleading about what
it actually covered.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: Gareth Morgan <gmorgan@nvidia.com>

This branch was successfully deployed

1 active (outdated) deployment
dev — e3bc333d Deployed Sep 28, 2026 by gareth-morgan-nv via publish-wheel #5046
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants