Repository navigation
test(ui): pair every launch argument, and ask for a window when CI opens none - #110
Shepdesign wants to merge 2 commits into
Conversation
…ens none The UI tests failed on their first assertion, and the tree they now print says why it was never the fixture: the app reaches runningForeground, builds its whole menu bar, and has no window. The Jars menu lists Juniper Bakery and Meridian beside the seeded jars, so makeWorkbench() ran past both fatalError calls and the Keychain VaultStore; File > New NetRelish Window is enabled while Close and Bring All to Front are not, so the scene can make a window and none was ever made. Two changes, both in the test: - Every launch argument is a -key/value pair. macOS pairs each -key with the next token, so the bare -NRUITestFixture took -ApplePersistenceIgnoreState as its value and left YES dangling: state restoration was never actually off, and the second method inherited the first one's scene. The fixture still switched on, because UITestFixture.isOn reads ProcessInfo.arguments.contains and never looks at the value, which is why the mistake stayed invisible. - When no window appears, the test asks for one through File > New NetRelish Window - the item the tree proves is enabled, and a route VoiceOver reaches - before it fails. If that makes no window either, the failure prints the tree. Why macOS opens no initial window for a WindowGroup on that virtual Mac is still unexplained. Nothing in Sources/ closes, hides or defers a window, no path under -NRUITestFixture leaves the WindowGroup uninstantiated, and the app prints nothing at launch - which is the ceiling of what this log can say. Chasing it further needs the app to log its window count at launch; this does not add that. No app code changes. Both traps are now on the accessibility page. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Sz4R7gro65BtZ2JyqWVwvZ
…against Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Sz4R7gro65BtZ2JyqWVwvZ
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
All four build jobs on
The three companion errors name symbols that exist and always did — This PR's diff is two files, neither of which the compiler was looking at: The expression had compiled on The fix is #111, which breaks that expression up. It is deliberately a separate PR rather than widened into this one, since it is unrelated app code. This PR stays as it is and waits for #111 to land, then picks up Generated by Claude Code |
|
Closing this: #109 does what it was for, and does it better, with a green run behind it. The one thing this PR got right was the launch arguments — a bare Which also means the And #109 goes on to fix the step I would have hit next: every Pantry seeds My remaining note stands and is worth keeping somewhere: the → #109. Generated by Claude Code |
What
The UI tests have failed on their first assertion since they first ran. The diagnostic tree they now print says it was never the fixture:
The app comes up, builds its whole menu bar, and has no window. Three things that tree proves:
Juniper BakeryandMeridianbeside the seededRead LaterandReference, soPantryStore(inMemory:)migrated,VaultStorewas constructed past bothfatalErrorsites, and bothnewJarcalls ran. The crash theory is dead.Setting up automation sessionand bothWait for … to idlesteps returned in 0.01–0.02s.File › New NetRelish Windowis enabled;Close,Close AllandBring All to Frontare disabled, as is every window-dependent command (Capture This Page,Seal,Close Tab).Two changes, both in the test:
-key valuepair. macOS pairs each-keywith the next token, so the bare-NRUITestFixturetook-ApplePersistenceIgnoreStateas its value and leftYESdangling — state restoration was never actually off, and the second test method inherited the first one's scene. The fixture still switched on, becauseUITestFixture.isOnreadsProcessInfo.arguments.containsand never looks at the value. That is why the mistake stayed invisible.File › New NetRelish Window— the item the tree proves is enabled, and a route VoiceOver reaches — before it fails. If that makes no window either, the failure prints the whole tree.What this does not claim
Why macOS opens no initial window for a
WindowGroupon that virtual Mac is still unexplained. Nothing inSources/closes, hides or defers a window; no path under-NRUITestFixtureleaves theWindowGroupuninstantiated;.defaultSize(1440×900)on the runner's 1024×768 display is clamped, not dropped; and the app prints nothing at launch, which is the ceiling of what this log can say. Chasing it further needs the app to log its window count at launch, and this PR does not add that.So this run is also the experiment: if the menu route produces a window, the missing initial window is the only anomaly left.
Demo
Launch the app from this branch — unchanged, because no app code changed. The demo for the path itself is ADR 0036's: ⌘L, the address, ⌘D, ⌃⌘1, Restore to Meridian, ⌘S. What this PR demos is CI: the UI tests job goes from red to green, or fails with a tree that says what is there.
Rule check
None touched. No models, no storage, no network, no intelligence, no new endpoint. The fixture stays
#if DEBUGon both sides and still reads onlyProcessInfo.arguments.Brand check
None. No UI, no tokens, no marks, no drips.
Follow-up, not in this PR
BUNDLE_LOADER = "$(TEST_HOST)"is set on theNetRelishUITeststarget, which is a hosted-unit-test setting on a UI-testing bundle.TEST_HOSTis unset so it expands to empty and is link-time only — untidy rather than broken. Removing it means aproject.ymlchange and a project regeneration, so it is left for a tidy-up.Generated by Claude Code