Introduction¶
When developing Electron-based desktop applications, end-to-end testing often faces differences between real rendering environments and virtual ones. Developers frequently encounter pitfalls such as incorrect DPI display, right-click menu interception failure, or abnormal popup behavior. DeepSeek Harness (DSH) aims to solve various toolchain integration problems through a plugin-based architecture. For Electron application testing scenarios, the satan9394/dsh-test-desktop-app plugin provides the ability to connect to a real renderer, helping developers work around common rendering issues.
Plugin Introduction¶
This is a DSH plugin focused on Electron application testing, maintained by user satan9394. It connects to the real renderer process via CDP (Chrome DevTools Protocol), supports testing of the DOM, JavaScript, and screenshots, and also covers Electron-specific rendering issues, such as DPR (device pixel ratio) display, right-click menu interaction, and popup behavior.
Core Features¶
- CDP Connection to Real Renderer: Directly connects to the Electron renderer process for testing instead of a virtual renderer.
- DOM/JS/Screenshot Testing: Supports validation of page structure, script logic, and visual screenshots.
- DPR/Right-Click/Popup Pitfall Testing: Provides targeted tests for common Electron rendering ratio (DPR), right-click menu interception, and popup behavior.
Installation and Configuration¶
The plugin installation command is not provided in the current materials. It is recommended to visit the GitHub source repository directly for specific installation steps or scripts.
Notes¶
Because the plugin runs with the current DSH process permissions, review the source code and license (not currently provided) before use to ensure compliance with project security standards. Usage examples and precautions are not provided in the current materials.