Commit graph

7 commits

Author SHA1 Message Date
Hibryda
75bb96cfed fix(e2e): switch Electrobun to ChromeDriver + debuggerAddress attach
- devtools protocol kills Electrobun's CEF browser on attach (navigates)
- ChromeDriver with debuggerAddress connects WITHOUT navigating
- Added Vite dev server auto-start (Electrobun dev mode requires it)
- Fixed this.skip() → test.pending for cross-protocol compat
- chromedriver@145 matches CEF Chrome 145
2026-03-22 07:19:57 +01:00
Hibryda
954d202c04 fix(e2e): kill stale CDP port before Electrobun launch 2026-03-22 06:50:45 +01:00
Hibryda
6a8181f33a fix(e2e): cross-protocol browser.execute() — works with both WebDriver + CDP
Root cause: WebDriverIO devtools protocol wraps functions in a polyfill
that puts `return` inside eval() (not a function body) → "Illegal return".

Fix: exec() wrapper in helpers/execute.ts converts function args to IIFE
strings before passing to browser.execute(). Works identically on both
WebDriver (Tauri) and CDP/devtools (Electrobun CEF).

- 35 spec files updated (browser.execute → exec)
- 4 config files updated (string-form expressions)
- helpers/actions.ts + assertions.ts updated
- 560 vitest + 116 cargo passing
2026-03-22 06:33:55 +01:00
Hibryda
b5bcf16db4 fix(e2e): install devtools package, use npx for electrobun CLI 2026-03-22 06:20:58 +01:00
Hibryda
c79d489e1a feat: CEF mode for Electrobun E2E — CDP automation, WebGL unlocked
- electrobun.config.ts: AGOR_CEF=1 enables bundleCEF + chromiumFlags
  (remote-debugging-port=9222). Production stays on WebKitGTK.
- wdio.electrobun.conf.js: rewritten for CDP via devtools protocol.
  Spawns app, waits for CDP port, kills on complete.
- helpers/actions.ts: waitForPort() polls CDP /json endpoint
- docs/testing.md: CEF mode docs, CI setup, troubleshooting
- npm script: test:e2e:electrobun prepends AGOR_CEF=1

CEF also enables: WebGL xterm.js addon (unlimited terminals),
WebGPU, full Chrome DevTools — all for dev/test only.
2026-03-22 06:13:01 +01:00
Hibryda
fea6e267b0 fix(e2e): electrobun config — multi-path binary search, graceful degradation 2026-03-22 06:01:44 +01:00
Hibryda
77b9ce9f62 feat: unified E2E testing engine — 205 tests, dual-stack support
Infrastructure:
- adapters/: base, tauri (port 9750), electrobun (port 9761 + PTY daemon)
- helpers/: 120+ centralized selectors, reusable actions, custom assertions
- wdio.shared.conf.js + stack-specific configs

18 unified specs (205 tests):
splash(6) smoke(15) settings(19) terminal(14) agent(15) search(12)
files(15) comms(10) tasks(10) theme(12) groups(12) keyboard(8)
notifications(10) diagnostics(8) status-bar(12) context(9)
worktree(8) llm-judged(10)

Daemon: --stack tauri|electrobun|both flag
Scripts: test:e2e:tauri, test:e2e:electrobun, test:e2e:both
2026-03-22 05:27:36 +01:00