Repository navigation
Description
Problem or use case
I want to develop and regression-test desktop applications from Orca with a repeatable build/launch/edit/test loop. Orca already provides computer-use primitives for application/window discovery, accessibility snapshots, screenshots, semantic actions, and state verification. The improvement is an application-test session that connects those primitives to project builds, reload behavior, and test evidence.
This should cover supported Windows, macOS, and Linux targets, including native applications and desktop webview frameworks such as Electron or Tauri, without assuming they all expose the same automation or reload capabilities.
Proposed solution
Add a reusable desktop-app test recipe and run record scoped to a worktree or folder workspace that:
- Saves the build/launch command, artifact identity, execution host, readiness conditions, fixture/reset behavior, and scenario or existing project test command, including folders without Git metadata.
- Builds and launches, or explicitly attaches to, a selected application. Record executable/bundle/package identity, build revision, process instance, window IDs, platform, and execution host.
- Integrates project watch/dev commands with opt-in save-triggered reruns. Use renderer/UI HMR where supported; rebuild/restart the relevant process for main-process/native changes, reporting state preservation versus reset. Keep previous receipts bound to their previous build when compilation or updating fails.
- Retargets task-owned application instances and windows after reload/restart, accounting for PID reuse and changed accessibility targets instead of acting on stale handles or another person's window.
- Uses native accessibility automation for native controls and supported DOM/devtools adapters for embedded web content, with explicit context selection.
- Supports repeatable multi-window, modal, menu, tray, clipboard, file-dialog, drag/drop, deep-link, and keyboard flows according to actual platform/backend capabilities.
- Integrates existing test suites and fixture data, plus accessibility and visual checks across relevant DPI/scale/theme/window-size configurations.
- Evaluates explicit expected/observed assertions. Preserve the existing computer-use distinction between action delivery and verified effect when judging a scenario.
- Collects application/build logs, crash evidence, screenshots/video, action traces, and supported performance measurements in a build-bound report.
- Reports whether an action was delivered in the background, required foreground interaction, failed verification, or was unsupported. Avoid promising universal background control on every OS/window system.
- Cleans up only the application processes, fixtures, and helpers owned by the test session.
Acceptance criteria
- A fixture application completes a declared build/launch/test/edit/retest cycle using the project's existing tooling.
- A saved recipe is replayable, and an intentionally unmet assertion fails even when the automation provider successfully delivered the action.
- A renderer-only hot update and a process-restart-required change are distinguished in the result.
- After restart, automation resolves the new process/window instance and does not interact with a stale or unrelated window.
- Native controls and supported embedded-web controls can be tested in their respective contexts.
- A crash, failed assertion, suspected no-op, unsupported control, and missing host capability yield different actionable outcomes and artifacts.
- Platform and display-configuration results are reported separately; testing one platform does not mark the others passed.
- Two copies of the same app from different workspaces retain distinct process/window bindings. Reconnect preserves completed receipts and marks interrupted, blocked, skipped, or cancelled work explicitly.
Alternatives or additional context
Project-specific test runners and OS tooling can perform much of this work today. The requested integration provides ownership, build/reload readiness, stable targeting, and a coherent evidence trail in Orca.
Browser extensions remain a separate test target unless the application under test explicitly supports an extension runtime.
Related: #31610 already requests a Desktop App tab for displaying and controlling a native window. This request adds reusable tests bound to the correct build, with assertions and retained results. The source-pinned computer-use guide documents the existing primitives and platform-specific limits.
Activity