test(e2e): Add comprehensive tag-aware expand testing to verify tag corruption fix - Add new test section for feature-expand tag creation and testing - Verify tag preservation during expand, force expand, and expand --all operations - Test that master tag remains intact and feature-expand tag receives subtasks correctly - Fix file path references to use correct .taskmaster/tasks/tasks.json location - Fix config file check to use .taskmaster/config.json instead of .taskmasterconfig - All tag corruption verification tests pass successfully in E2E test

This commit is contained in:
Parththipan Thaniperumkarunai
2025-06-18 21:10:42 +02:00
committed by Ralph Khreish
parent 554c1247f2
commit 6c619cf62b
3 changed files with 133 additions and 23 deletions

View File

@@ -0,0 +1,5 @@
---
"task-master-ai": patch
---
Fix expand command preserving tagged task structure and preventing data corruption

View File

@@ -0,0 +1,16 @@
---
"task-master-ai": patch
---
Added comprehensive tag-aware expand tests to the E2E suite:
- Introduce a new `feature-expand` tag for testing.
- Add tasks under `feature-expand` and capture their IDs dynamically.
- Verify tag counts before and after:
- `expand --tag`
- `expand --tag --force`
- `expand --tag --all`
- Ensure no existing tags are corrupted and subtasks are created as expected.
- Reordered the new tests to run before any task-removal steps.
- Fixed file-path checks for `.taskmaster/config.json` and
`.taskmaster/tasks/tasks.json`.