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
85fa50974b
Merge branch 'master' into feat/operation-logs
...
* master:
refactor(e2e): improve test infrastructure for easier expansion
chore(e2e): remove broken/empty skipped tests
test(e2e): fix flaky plugin and WebDAV sync tests
refactor(e2e): replace waitForTimeout with condition-based waits
perf(e2e): remove ineffective waits to speed up test runs
docs(e2e): add CLAUDE.md reference and barrel export for easier test creation
build: update dep
refactor(e2e): simplify waits and fix flaky tests
feat(e2e): streamline e2e test development with improved infrastructure
perf(e2e): optimize wait utilities and addTask method for faster test execution
16.8.1
# Conflicts:
# e2e/pages/base.page.ts
# e2e/pages/project.page.ts
# e2e/tests/reminders/reminders-schedule-page.spec.ts
# e2e/tests/sync/webdav-sync-advanced.spec.ts
# e2e/tests/sync/webdav-sync-expansion.spec.ts
# e2e/tests/sync/webdav-sync-full.spec.ts
# e2e/utils/waits.ts
2026-01-03 18:51:51 +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
b08774d7e6
test(worklog): update test expectations for alphabetical sorting
...
Update test expectations in map-archive-to-worklog.spec.ts and E2E tests
to match the new alphabetical sorting order for worklog entries.
The sorting feature sorts tasks alphabetically while keeping subtasks
grouped with their parent tasks. This changes the expected order in tests:
- Parent tasks now sorted alphabetically (MT1 before PT1)
- Subtasks sorted alphabetically within their group (SUB_B before SUB_C)
2025-12-16 21:03:13 +01:00
Johannes Millan
4e0595d8b8
test(e2e): fix
2025-10-24 13:57:22 +02:00
Johannes Millan
b20f845cb9
test(e2e): make all e2e tests work again and optimize
2025-09-09 23:47:34 +02:00
Johannes Millan
613ccfa3da
test(e2e): restore all test files from 4781b6ec with updated import paths
2025-08-02 16:57:12 +02:00
Johannes Millan
6ddbf00651
test(e2e): remove console.log statements and replace console.error with throw
...
- Remove all console.log statements from E2E test files
- Replace console.error with throw new Error for proper error handling
- Remove console.warn statements
- Fix unused variable linting errors in plugin tests
2025-08-02 12:25:21 +02:00
Johannes Millan
9f2c786e41
refactor: move tests
2025-08-02 11:37:25 +02:00