Add mobile CRUD-sync flow coverage and stabilize sync repair test

This commit is contained in:
Rijad Zuzo
2026-02-17 23:48:04 +01:00
parent cfe7e05a81
commit d76b31d37d
3 changed files with 230 additions and 2 deletions
+28 -2
View File
@@ -1,6 +1,28 @@
# Relationship Saver Progress Log
Updated: 2026-02-15
Updated: 2026-02-17
## Latest Milestone (2026-02-17): Sync Repair Test Stability + Mobile CRUD/Sync Flow Coverage
Completed two test-depth upgrades:
- Stabilized rejected-sync repair widget flow:
- `test/features/sync/sync_rejection_repair_flow_test.dart`
- fixed viewport-aware assertions/actions for `ListView` content by
scrolling before interacting with rejection controls
- verifies rejected item -> open related repair screen -> save ->
local state mutation applied
- Added mobile-first integration-style flow:
- `test/features/app/app_mobile_crud_sync_flow_test.dart`
- covers compact-shell path: sign-in -> People -> add person -> sync queue
envelope asserted -> open Sync from `More` menu
- validates both UI behavior and queued backend envelope side effect in
`SyncQueueRepository`
Validation for this milestone:
- `flutter analyze` -> pass
- `flutter test` -> pass
## Latest Milestone (2026-02-15): Direct Entity Repair Forms From Sync
@@ -16,6 +38,9 @@ Implemented deep-link repair forms for rejected sync items:
- `reminderRule`
- each form updates local state via `LocalRepository` directly
- focus banner keeps exact `entityType:entityId` context with copy action
- Added widget flow coverage:
- `test/features/sync/sync_rejection_repair_flow_test.dart`
- verifies reject -> open repair form -> save -> local state updated
Validation for this milestone:
@@ -291,7 +316,8 @@ Validation for this milestone:
- implemented via reachability gating; future improvement is explicit OS
connectivity event subscription.
4. Test depth:
- add integration tests for auth + sync + CRUD end-to-end app flows.
- expanded with mobile compact CRUD+sync flow and rejected-repair flow.
- future: add desktop + web-specific end-to-end sync error/retry scenario.
## Latest Milestone (2026-02-15): Sync Queue Storage Adapter + Hive Migration