Skip to content

trycua/desktop-test-app-electron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

desktop-test-app-electron

Electron companion to trycua/desktop-test-app for cua-sandbox MITM proxy integration tests.

Usage

npm install
# Default (loads https://example.com)
npx electron .

# Custom URL
CUA_LOAD_URL=https://example.com npx electron .

HTTP API

Same contract as the Tauri app — port 6769:

Method Path Description
GET /health 200 OK
GET /events All logged events
POST /reset Clear events
GET /clipboard Clipboard text
GET /window-title Current window title
GET /screen-size {width, height}

Security posture

Simulates a typical closed-source Electron app:

  • nodeIntegration: false, contextIsolation: true, webSecurity: true
  • No --ignore-certificate-errors
  • Respects system CA store via --use-system-default-ca (Linux)

For MITM tests install the proxy CA with update-ca-certificates and launch:

electron --use-system-default-ca .

About

Electron companion to desktop-test-app — loads arbitrary URLs for cua-sandbox MITM proxy integration tests

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors