Commit graph

16 commits

Author SHA1 Message Date
Johannes Millan
6c098b6eaa Merge branch 'master' into feat/operation-logs
Resolve conflict in webdav-sync-expansion.spec.ts:
- Use simplified sync verification without reload (sync updates NgRx directly)
- Test: B marks task done -> sync -> verify A sees task as done
2025-12-29 21:54:15 +01:00
Johannes Millan
c4f536471a test(webdav): add e2e tests 2025-12-29 12:48:36 +01:00
Johannes Millan
31f6232760 fix(e2e): fix failing supersync models test due to wrong locator 2025-12-12 20:48:13 +01:00
Johannes Millan
00c14f8c87 feat(e2e): Add comprehensive SuperSync E2E integration tests
This commit introduces a suite of new end-to-end integration tests for SuperSync, covering various scenarios to ensure robustness and correctness.

Key additions include:
- : Tests scenarios where a client works locally before enabling sync, focusing on correct merging of data.
- : Verifies synchronization of non-task models such as projects, tags, and project notes.
- Integration tests for :
    - : Tests large batch uploads and downloads with pagination.
    - : Verifies handling of schema version mismatches during sync.
    - : Ensures robustness against total and partial network failures during sync, including recovery and retry mechanisms.
    - : Focuses on core service logic, including encryption/decryption and conflict dialog integration.
- : Modified to improve handling of accepted operations and  updates during sync.
-  and : Minor adjustments for stability and improved interaction in e2e tests.

These tests significantly enhance the coverage and reliability of SuperSync functionality.
2025-12-12 20:48:13 +01:00
Johannes Millan
4ec17b4595 test(e2e): stabilize WebDAV sync projects test
- Navigate to project after creation (createProject doesn't auto-navigate)
- Expand Projects group and wait for project to appear before navigating
- Wait for URL to change to /project/ route after clicking project
- Use more specific page-title selector to avoid matching old view titles
- Increase timeout for title assertion
2025-12-11 18:47:56 +01:00
Johannes Millan
ca387ca2bf refactor(e2e): improve test reliability with deterministic waits
- Add waitForStatePersistence utility for sync tests to replace hardcoded delays
- Fix nav-list vs nav-list-tree selector inconsistencies across test files
- Replace waitForTimeout calls with proper element waits and Angular stability checks
- Update selectors.ts constants to use correct nav-list-tree component selector
2025-12-11 18:47:56 +01:00
Johannes Millan
f7312a8934 Fix(e2e): Stabilize WebDAV sync tests
Implemented navigateToProjectByName in ProjectPage to resolve 'TypeError: navigateToProjectByName is not a function' in webdav-sync-expansion.spec.ts. This method now includes robust logic for expanding the 'Projects' group and multiple fallback strategies for locating project buttons.

Added 1-second delays before triggerSync() calls in webdav-sync-expansion.spec.ts (after marking a task undone) and webdav-sync-full.spec.ts (after task deletion). This mitigates race conditions, allowing local state changes to persist before synchronization, thus reducing test flakiness.

All WebDAV E2E tests are now passing consistently.
2025-12-11 11:52:33 +01:00
Johannes Millan
e268076332 test(e2e): try to fix e2e tests 2025-12-10 21:26:48 +01:00
Johannes Millan
19643e781c fix(e2e): WebDAV sync tests connection and timeout issues
- Update WebDAV base URL to use 127.0.0.1 instead of localhost in E2E sync tests. This resolves ECONNREFUSED errors in CI environments where localhost might resolve to IPv6 (::1) while the WebDAV server binds to IPv4.
- Increase various UI interaction timeouts in ProjectPage to improve stability and prevent flakiness in CI environments.
2025-12-10 20:07:56 +01:00
Johannes Millan
71082ada2d test(e2e): fix 2025-09-10 21:15:56 +02:00
Johannes Millan
d8207fbafd feat: adjust page title 2025-09-10 18:03:00 +02:00
Johannes Millan
a1285212c0 test(e2e): fix 2025-09-10 18:03:00 +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
1a82aa905b test(e2e): improve 2025-08-04 18:35:00 +02:00
Johannes Millan
a6896cb905 test(e2e): fix 2 2025-08-03 15:04:30 +02:00
Johannes Millan
9f2c786e41 refactor: move tests 2025-08-02 11:37:25 +02:00
Renamed from e2e-playwright/pages/project.page.ts (Browse further)