callumalpass_tasknotes/tests/unit/modals
callumalpass 66991489fb test(modals): add failing tests for #1344 unsaved changes false positive
Add unit tests that reproduce the bug where the "Unsaved Changes" popup
appears randomly when closing the task edit modal without making changes.

Root cause: Inconsistent normalization between extractDetailsFromContent()
(uses trimEnd) and normalizeDetails() (does not use trimEnd). When the
markdown editor fires onChange with trailing whitespace, the comparison
fails and triggers a false positive.

Tests fail intentionally to document the bug. They should pass once the
fix is implemented.

Relates to #1344
2025-12-31 12:08:39 +11:00
..
ProjectSelectModal.property-filter.test.ts Add project property filter support 2025-09-16 07:57:33 +10:00
TaskCreationModal-original.test.ts.bak Refactor testing infrastructure to improve mock fidelity, DOM simulation, and unit test robustness 2025-06-24 07:42:56 +10:00
TaskCreationModal.plus-search.searchable-flag.test.ts fix: add i18n mocks to fix failing tests in translation feature 2025-09-23 22:11:11 +10:00
TaskCreationModal.plus-suggestions.test.ts fix: prevent '+' project suggestions crash with non-string titles (normalize title; guard filter); add chrono-node ambient type and normalization tests (#463) 2025-08-20 22:22:27 +10:00
TaskCreationModal.project-suggestions.highlight-selective.test.ts Fix: Resolve all failing tests (121/124 test suites passing) 2025-11-18 22:25:55 +11:00
TaskCreationModal.project-suggestions.highlighting.test.ts fix: add i18n mocks to fix failing tests in translation feature 2025-09-23 22:11:11 +10:00
TaskCreationModal.project-suggestions.render-card.test.ts fix: add i18n mocks to fix failing tests in translation feature 2025-09-23 22:11:11 +10:00
TaskCreationModal.projects-with-commas.test.ts fix: add i18n mocks to fix failing tests in translation feature 2025-09-23 22:11:11 +10:00
TaskCreationModal.status-suggestions.test.ts fix: add i18n mocks to fix failing tests in translation feature 2025-09-23 22:11:11 +10:00
TaskCreationModal.test.ts refactor: centralize task creation defaults in TaskService 2025-12-07 15:13:57 +11:00
TaskEditModal.projects-with-commas.test.ts test: add unit tests to ensure projects with commas in wikilinks are preserved across creation, editing, and settings defaults 2025-08-26 08:48:45 +00:00
TaskEditModal.unsaved-changes.test.ts test(modals): add failing tests for #1344 unsaved changes false positive 2025-12-31 12:08:39 +11:00
TaskModal.user-fields.test.ts feat: Add user field support to task creation/edit modals 2025-08-24 21:15:07 +10:00