Cover task planning and recurring reset workflows

This commit is contained in:
Shinuwa 2026-09-17 22:33:05 +02:00
parent 4eb4816937
commit a01f605d55
4 changed files with 110 additions and 15 deletions

View file

@ -135,7 +135,6 @@ test("toolbox module registry and modules expose expected behavior", async () =>
const taskPlannerTopbar = await readFile("website/src/features/toolboxes/modules/TaskPlannerTopbar.jsx", "utf8");
const taskPlannerSettings = await readFile("website/src/features/toolboxes/modules/TaskPlannerSettings.jsx", "utf8");
const taskPlannerBundle = `${taskPlannerBranch}\n${taskPlannerItem}\n${taskPlannerItemPanels}\n${taskPlannerReorder}\n${taskPlannerTopbar}\n${taskPlannerSettings}`;
const taskPlannerUtils = await readFile("website/src/features/toolboxes/modules/taskPlannerUtils.js", "utf8");
const goalTreeModule = await readFile("website/src/features/toolboxes/modules/GoalTreeModule.jsx", "utf8");
const goalTreeEditor = await readFile("website/src/features/toolboxes/modules/GoalTreeEditor.jsx", "utf8");
const goalTreeParts = await readFile("website/src/features/toolboxes/modules/GoalTreeParts.jsx", "utf8");
@ -321,23 +320,9 @@ test("toolbox module registry and modules expose expected behavior", async () =>
assert.match(calendarUtils, /export function getCalendarOccurrences/);
assert.match(calendarUtils, /CALENDAR_VIEW_MODES = \["week", "month"\]/);
assert.match(calendarUtils, /export function getNextCalendarAlertTime/);
assert.match(taskPlannerModule, /export function TaskPlannerModule/);
assert.match(taskPlannerModule, /normalizeTaskPlannerData/);
assert.match(taskPlannerModule, /applyDueResets/);
assert.match(taskPlannerModule, /TaskPlannerBranch/);
assert.match(taskPlannerBundle, /useGroupedReorder/);
assert.match(taskPlannerModule, /useDraftForm/);
assert.match(taskPlannerBundle, /TextExchangeActions/);
assert.match(taskPlannerBundle, /reorderFeatures/);
assert.match(taskPlannerBranch, /export function TaskPlannerBranch/);
assert.match(taskPlannerItem, /export function TaskPlannerItem/);
assert.match(taskPlannerBundle, /task-planner-warning/);
assert.match(taskPlannerBundle, /useInlineEdit/);
assert.match(taskPlannerBundle, /commitOnEnter: false/);
assert.match(taskPlannerBundle, /categoryLabel/);
assert.match(taskPlannerBundle, /prerequisite/);
assert.match(taskPlannerUtils, /export function getTaskParentMap/);
assert.match(taskPlannerUtils, /export function applyDueResets/);
assert.doesNotMatch(taskPlannerModule, /canMoveItem:/);
assert.doesNotMatch(taskPlannerModule, /canMoveGroup:/);
assert.match(goalTreeModule, /export function GoalTreeModule/);