Repository navigation
feat(nsgotest): record the status bar's immersive setting - #2362
Merged
Merged
Conversation
The model copied the resolved status bar without Immersive, so a test could not see immersive full screen turn on or off. Copy it and cover mobile.Immersive with a test. Co-Authored-By: Claude Opus 5.5 <[email protected]>
houko
approved these changes
Nov 25, 2026
houko
left a comment
Collaborator
There was a problem hiding this comment.
Verified against latest main. The headless model preserves ItemStatusBar.Immersive in StatusBarConfig, and the regression covers mobile.Immersive toggling. The targeted nsgotest suite passes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
nsgotestcopied the resolved status bar into its model withoutImmersive, somobile.Immersive(cx, true)andmobile.Immersive(cx, false)recorded the sameStatusBarConfigand a test could not see a game enter or leave full screen.Add the field and copy it, as the platform hosts receive it.
Fixes #2255.
Targets
core,base,ui,tsx, thensgotool)Screenshots
None; nothing visible changes.
Verification
New test
TestStatusBarRecordsImmersivepresses a view that callsmobile.Immersiveand checksApp.StatusBar.Immersivegoes true and back to false. It does not build onmain, where the field does not exist.go tool nsgo test ./nsgotest -count=1: 242 passed, 0 failed, 1 skipped. The existingTestStatusBarRecordsResolvedSettingsstill holds, the field being false where nothing sets it.go run ./tools/changelog checkpasses with the new fragment.Not covered: a test for a screen's or a modal's own
StatusBar, which the same copy carries. The headless model reports the resolved value, and a screen's layer needs a navigation stack in the fixture; I left that out rather than build one.go tool nsgo checkgo tool nsgo testgo tool nsgo test -target <target>on the targets aboveChecklist
changelog.d/fragment, not inCHANGELOG.md. The testing guides do not listStatusBar's fields, so only the fragment changed.🤖 Generated with Claude Code