feat: add comprehensive E2E test suite for desktop app#853
Conversation
Add ~370 tests across 16 test suites using Electron MCP/CDP approach: - Core: app lifecycle, navigation, IPC procedures - Sessions: agent sessions, session lifecycle - MCP: tool discovery, server status, elicitation/sampling - UI: components, settings pages - Features: conversations, message queue, profiles - Quality: error handling, performance, integration workflows Tests execute via electron_execute MCP tool with direct renderer access. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
🤖 Augment PR SummarySummary: Adds a large end-to-end test suite for the SpeakMCP Electron desktop app, executed via the electron-native MCP server using Chrome DevTools Protocol (CDP). Changes:
Technical Notes: Tests run directly in the renderer process and validate functionality primarily through 🤖 Was this summary useful? React with 👍 or 👎 |
| export function generateQuickTest(testCode: string): string { | ||
| return ` | ||
| (async () => { | ||
| ${assertionsCode} |
There was a problem hiding this comment.
assertionsCode/helpersCode are pre-escaped for inclusion inside a template literal (they contain sequences like \\\`` / \${...}), but generateQuickTest()inlines them directly into executable JS here. That likely produces invalid JS (stray` before template literals) and would also make the README’s generateQuickTest example fail at runtime.
🤖 Was this useful? React with 👍 or 👎
Add ~370 tests across 16 test suites using Electron MCP/CDP approach:
Tests execute via electron_execute MCP tool with direct renderer access.
🤖 Generated with Claude Code