super-productivity/e2e/tests/task-list-basic
Johannes Millan a8bccb9e31
fix(tasks): add subtask via "a" shortcut when detail panel is open (#8152)
* build: drop unused elevate.exe from Windows build #8135

elevate.exe is bundled by electron-builder's NSIS target solely so
electron-updater can apply privileged per-machine updates. We ship no
in-app auto-updater (electron-updater is not a dependency; the autoUpdater
block in electron/start-app.ts is commented out), so the binary is unused
dead weight and a frequent AV false-positive. Set packElevateHelper: false
to stop bundling it; safe because perMachine is not true.

* fix(tasks): add subtask via "a" shortcut when detail panel is open

With the detail panel open, pressing "a" created a sub-task but did not
focus it for editing.

Two paths were broken:
- Focus inside the panel: the panel auto-focuses a detail item on open, so
  focus is not on a <task> row and the global task-shortcut handler drops
  the shortcut. The panel now handles taskAddSubTask in its keydown listener
  (stopPropagation avoids a double-add when focus is on an in-panel row).
- Focus on the main-list task row: addSubTaskTo -> focusTaskById targeted the
  last #t-<id> copy, which is the in-panel copy inside the collapsed (hidden)
  sub-task section and cannot take focus. focusTaskById now falls back to the
  last focusable copy, so the new sub-task title is focused for editing
  (the panel follows focus to the new sub-task).
2026-06-08 16:21:45 +02:00
..
add-subtask-with-detail-panel-open.spec.ts fix(tasks): add subtask via "a" shortcut when detail panel is open (#8152) 2026-06-08 16:21:45 +02:00
drag-task-into-subtask.spec.ts feat(tasks): allow dragging tasks into subtask lists (#7962) 2026-06-02 19:43:41 +02:00
finish-day-quick-history-with-subtasks.spec.ts test(e2e): stabilize finish day history flow 2026-06-06 19:00:50 +02:00
finish-day-quick-history.spec.ts test(e2e): stabilize finish day history flow 2026-06-06 19:00:50 +02:00
simple-subtask.spec.ts test(e2e): fix 2025-10-24 13:57:22 +02:00
task-list-start-stop.spec.ts refactor(e2e): replace waitForTimeout with condition-based waits 2026-01-03 15:29:38 +01:00