Development
test-desktop-app
Use when testing the Hubble Electron desktop app, especially when inspecting, clicking, screenshotting, or verifying a real note edit in the running app.
bholmesdev · Static checks on file
Installation
Read the source and dependencies before running a command. Copying does not install or execute anything.
npx skills add bholmesdev/hubble.md --skill test-desktop-appAbout this skill
name: test-desktop-app description: Use when testing the Hubble Electron desktop app, especially when inspecting, clicking, screenshotting, or verifying a real note edit in the running app. metadata: internal: true
Test Desktop App
- Run
HUBBLE_DESKTOP_BACKGROUND=1 HUBBLE_DESKTOP_ENABLE_CDP=1 pnpm dev:desktop.HUBBLE_DESKTOP_BACKGROUND=1keeps the window hidden so it never covers or takes focus from the user's screen; drive it over CDP. - Read the terminal output for:
Playground: <path>DevTools listening on ws://127.0.0.1:9222/...
- Use the auto-opened editable playground at
apps/desktop/.dev-electron/playgroundinstead of file pickers or checked-in fixtures. - Prefer the Chrome DevTools Protocol endpoint for interaction-heavy verification. It can inspect DOM state, evaluate JavaScript, click controls, inspect iframe contents, and capture screenshots from the real Electron renderer. This is useful when Computer Use has limitations interacting with the dev app window.
- For CDP setup, fetch
http://127.0.0.1:9222/json/list, connect to the pagewebSocketDebuggerUrl, and drive the renderer with DevTools Protocol commands. - When you're done, stop the dev server and confirm no
Hubble Devprocess remains.
Gotchas:
- Build
packages/uiandpackages/editorfirst; the desktop app imports their dist output. - Screenshots are DPR 2: CSS px times 2.
- Right clicks need real
Input.dispatchMouseEventevents; syntheticcontextmenuevents don't open base-ui context menus. - Popup open in the DOM but missing from a screenshot? Check stacking with
document.elementFromPoint. - xterm refits through a debounced ResizeObserver and can lag layout changes by a few seconds; re-measure before calling it a bug.