Refactor goal tree editor form
All checks were successful
Deploy Sokko G / deploy (push) Successful in 15s
All checks were successful
Deploy Sokko G / deploy (push) Successful in 15s
This commit is contained in:
parent
a796edcb02
commit
d9bbf40fad
3 changed files with 255 additions and 169 deletions
|
|
@ -165,7 +165,9 @@ test("toolbox module registry and modules expose expected behavior", async () =>
|
|||
const taskPlannerBundle = `${taskPlannerItems}\n${taskPlannerItemPanels}`;
|
||||
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");
|
||||
const goalTreeBundle = `${goalTreeModule}\n${goalTreeEditor}\n${goalTreeParts}`;
|
||||
const goalTreeDisplay = await readFile("website/src/features/toolboxes/modules/goalTreeDisplay.js", "utf8");
|
||||
const goalTreeUtils = await readFile("website/src/features/toolboxes/modules/goalTreeUtils.js", "utf8");
|
||||
const equipmentPlannerModule = await readFile("website/src/features/toolboxes/modules/EquipmentPlannerModule.jsx", "utf8");
|
||||
|
|
@ -381,11 +383,15 @@ test("toolbox module registry and modules expose expected behavior", async () =>
|
|||
assert.match(goalTreeModule, /applyGoalTreeDueResets/);
|
||||
assert.match(goalTreeModule, /TextExchangeActions/);
|
||||
assert.match(goalTreeModule, /DiagramConnectors/);
|
||||
assert.match(goalTreeEditor, /export function GoalTreeEditor/);
|
||||
assert.match(goalTreeEditor, /Tabs/);
|
||||
assert.match(goalTreeEditor, /GoalTreeFormulaInput/);
|
||||
assert.match(goalTreeEditor, /GoalTreePrerequisitePicker/);
|
||||
assert.match(goalTreeParts, /Tooltip/);
|
||||
assert.match(goalTreeParts, /export function GoalTreeIconPicker/);
|
||||
assert.match(goalTreeParts, /export function GoalTreeContentEditor/);
|
||||
assert.match(goalTreeParts, /function GoalTreeNodeContentPreview/);
|
||||
assert.doesNotMatch(`${goalTreeModule}\n${goalTreeParts}`, /\.slice\(0, 3\)/);
|
||||
assert.doesNotMatch(goalTreeBundle, /\.slice\(0, 3\)/);
|
||||
assert.match(goalTreeParts, /GoalTreeChecklistInlineControl/);
|
||||
assert.match(goalTreeParts, /GoalTreeStepLeafControl/);
|
||||
assert.match(goalTreeParts, /export function GoalTreePrerequisitePicker/);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue