mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 19:52:02 +00:00
2 KiB
2 KiB
Electron Desktop Workspace Review Shell
Date: 2026-04-25 Slice: 11
Scope
This slice componentized the renderer workbench into explicit shell regions: top bar, project/thread sidebar, conversation thread, review panel, and terminal drawer. It also added stable DOM landmarks that future Playwright Electron and Chrome DevTools MCP tests can assert without coupling to visual copy.
Automated Coverage Added
packages/desktop/src/renderer/components/layout/WorkspacePage.test.tsx- Environment: Vitest jsdom component smoke test
- Scenario:
- Render
WorkspacePagewith fake desktop runtime, project, session, Git diff, empty terminal, and initial store state. - Assert stable landmarks are present:
desktop-workspaceproject-sidebarworkspace-topbarworkspace-gridchat-threadreview-panelterminal-drawerproject-listthread-list
- Assert representative project, branch, changed file, and terminal empty state text render into the DOM.
- Render
Diagnostic Plan For Future Electron E2E
When the Slice 14 Electron harness lands, reuse these same landmarks and collect on failure:
- Renderer screenshot of the first viewport.
- DOM snapshot containing each
data-testidlandmark. - Console errors and failed network requests from the CDP connection.
- Main process logs and server URL/token redacted status.
Execution Result
npm run test --workspace=packages/desktoppassed: 9 files, 53 tests.npm run typecheck --workspace=packages/desktoppassed.npm run lint --workspace=packages/desktoppassed.npm run build --workspace=packages/desktoppassed.npm run buildpassed. Existing VS Code companion lint warnings were warnings only and unrelated to this slice.npm run typecheckpassed.
Remaining Risk
This is a component-level E2E precursor, not a launched Electron screenshot/CDP test. The full Electron harness must still verify these landmarks in a real renderer process with screenshot, console, network, and first-paint checks.