test: cover design text context menu
This commit is contained in:
@@ -19,6 +19,9 @@
|
||||
with the current window lifecycle.
|
||||
- Restore the smallest Main-owned native text-editing context-menu behavior and add
|
||||
focused regression coverage at the real window/event seam.
|
||||
- Verify that the AI Design `design-chat-composer` textarea shares the same
|
||||
primary Renderer seam, and extend the Electron regression to cover both Code
|
||||
and Design textarea controls without adding a duplicate listener.
|
||||
- Update user-facing documentation or Electron E2E coverage only where current
|
||||
behavior and the shared fixture require it.
|
||||
|
||||
@@ -51,9 +54,15 @@
|
||||
content still produces no menu.
|
||||
- Registered the listener once during primary-window creation without adding
|
||||
Renderer, Preload, IPC, Host API, or direct clipboard access.
|
||||
- Confirmed `DesignConversationPane` renders the AI Design composer as the
|
||||
ordinary `<textarea id="design-chat-composer">` produced by the shared
|
||||
`Textarea` component inside that same primary Renderer. The window-level
|
||||
listener therefore covers both AI Code and AI Design without a second
|
||||
production listener.
|
||||
- Added five focused unit cases and an Electron E2E regression that dispatches
|
||||
a real right-click inside the primary Renderer window and observes one native
|
||||
menu popup with the expected editing actions.
|
||||
real right-clicks on Code and Design textarea controls inside the primary
|
||||
Renderer window and observes two native menu popups with the expected editing
|
||||
actions.
|
||||
- Synchronized `README.md` with the restored desktop behavior and ownership
|
||||
boundary.
|
||||
|
||||
@@ -69,7 +78,8 @@
|
||||
- Green phase:
|
||||
- `corepack pnpm exec vitest run tests/unit/context-menu.test.ts` — 5 passed.
|
||||
- `corepack pnpm exec playwright test tests/e2e/context-menu.spec.ts` — 1
|
||||
passed.
|
||||
passed, covering both Code and Design textareas with two observed native
|
||||
popups.
|
||||
- `corepack pnpm run typecheck` — passed.
|
||||
- `corepack pnpm exec eslint electron/main/context-menu.ts electron/main/index.ts tests/unit/context-menu.test.ts tests/e2e/context-menu.spec.ts`
|
||||
— passed.
|
||||
|
||||
Reference in New Issue
Block a user