Add people quick-capture dialog regression test

This commit is contained in:
Rijad Zuzo
2026-02-23 14:12:15 +01:00
parent 05588cc58e
commit 69f91ce2b9
2 changed files with 112 additions and 0 deletions
+19
View File
@@ -7,6 +7,25 @@ Updated: 2026-02-22
- After every sensible code/documentation change set, create a git commit as
the last step so the next agent session can pick up from clean checkpoints.
## Latest Milestone (2026-02-22): Quick-Capture Dialog Regression Test (People)
Added explicit widget-test coverage so controller lifecycle issues in quick
capture dialogs are caught automatically in CI/local runs.
- `test/features/people/people_quick_capture_dialog_test.dart` (new)
- mounts `PeopleView` in mobile layout
- opens profile-context `Capture` quick action dialog
- exercises `Cancel` path and pumps through dismissal frames
- reopens dialog, saves a capture, and pumps through dismissal frames
- asserts:
- no framework exceptions surfaced (`tester.takeException() == null`)
- local moments count increases after save
- specifically protects against the disposed `TextEditingController` race
- Validation
- `flutter analyze` -> pass
- `flutter test` -> pass
## Latest Milestone (2026-02-22): Quick-Capture Dialog Controller Lifecycle Fix
Fixed a runtime crash when creating captures/notes from profile-context quick