Commit graph

13 commits

Author SHA1 Message Date
Johannes Millan
dbeca43876 test(e2e): fix done-toggle selector to use element instead of class
The done-toggle was refactored from an inline SVG with class="done-toggle"
into a standalone Angular component <done-toggle>. Update all e2e selectors
from '.done-toggle' (class) to 'done-toggle' (element) to match.
2026-03-24 16:25:42 +01:00
Johannes Millan
31480a5fab feat(tasks): replace drag handle with done toggle circle and improve mobile UX
- Replace drag handle with SVG done-toggle circle with checkmark draw-on animation
- Improve mobile UX: cdkDragStartDelay for touch, bottom-sheet context menu
- Move issue/repeat indicators from drag handle to tag-list as chips
- Add isFinishDayEnabled config toggle
- Reorder context menu: add sub task before duplicate, deadline as own entry
- Fix context menu not opening on swipe left
- Fix race condition in done toggle animation timeout
2026-03-22 18:14:16 +01:00
Johannes Millan
7164a5e44b test(e2e): fix encryption button timing and drag-handle strict mode violation
Two root causes for failing E2E tests in CI:

1. Encryption button not visible after provider selection: The async
   provider change listener loads config from IndexedDB and updates the
   Formly model, but the 1000ms waitForTimeout was insufficient in CI.
   Replace with polling (200ms intervals, 10s timeout) that waits for
   either enable or disable encryption button to become visible.
   Also removes ~130 lines of leftover debug logging from disableEncryption().

2. Drag-handle strict mode violation on parent tasks with subtasks:
   task.locator('.drag-handle') matched both the parent's drag handle
   and nested subtask drag handles. Add .first() to all drag-handle
   locator usages to target only the parent task's own handle.
2026-03-04 19:38:37 +01:00
Johannes Millan
68a2d8a9b7 test(e2e): fix flaky tests with better waits and focus handling
Replace unreliable networkidle waits with explicit element/URL waits,
improve keyboard focus handling with retry logic, fix strict mode
violations, and add hover before note menu interactions.
2026-03-03 21:46:11 +01:00
Johannes Millan
19b0a43cc2 fix(e2e): use page object for project creation in drag-drop test
Shift+P keyboard shortcut was silently blocked when focus remained on
the add-task input after task creation. Switch to button-based
projectPage.createProject() and explicitly expand the Projects sidebar
group after navigating back to Today view.
2026-02-07 11:47:15 +01:00
Johannes Millan
eec7538ed0 fix(e2e): fix flaky and failing E2E tests
- bug-5995: replace waitForLoadState with waitForAppReady and
  waitForURL to handle navigation timing under parallel load
- flowtime-timer-bug-5117: replace flaky countdown try/catch with
  single robust wait for complete-session button (25s timeout)
- task-detail: add Tab press after fill('') to trigger blur-based
  ngModel update on date/time inputs
- task-dragdrop: navigate back to Today view after project creation
  since app now navigates to new project on create
- base.page: dismiss blocking dialogs before addTask interaction
2026-02-06 17:31:57 +01:00
Johannes Millan
11d85208e5 refactor(e2e): replace waitForTimeout with condition-based waits
- Replace ~100 waitForTimeout calls with proper condition-based waits
- Extract shared utilities for time input and task scheduling
- Add timeout constants for consistent wait times
- Add new selectors for reminder dialogs and detail panels

Files refactored across 25+ test files including:
- Plugin tests (lifecycle, upload, loading, enable, structure)
- Reminder tests (view-task, schedule-page, default-options)
- Work view, planner, focus mode, and app feature tests
- Task dragdrop, autocomplete, and daily summary tests

New utilities created:
- e2e/utils/time-input-helper.ts - Robust time input filling
- e2e/utils/schedule-task-helper.ts - Task scheduling helpers
- e2e/constants/timeouts.ts - Standardized timeout values
2026-01-03 15:29:38 +01:00
Johannes Millan
db4dbb1aa9 fix: effect errors and e2e tests 2025-11-14 15:23:17 +01:00
Johannes Millan
a3dfb9dd49 test(e2e): improve e2e stability 3 2025-11-06 19:54:50 +01:00
V Srinivas
9e8c9ea708 test(e2e): fix tag creation in task-dragdrop.spec.ts 2025-10-31 01:07:31 +05:30
Johannes Millan
2ab2644ded test(e2e): make less flaky 2025-10-24 14:16:31 +02:00
Michael Kiausch
993a2f0338 updated test 2025-10-21 14:41:09 +02:00
Michael Kiausch
79acd8d5aa added task drag-drop tests 2025-10-21 12:47:44 +02:00