Cover table editing and cell selection workflows
All checks were successful
Deploy Sokko G / deploy (push) Successful in 19s
All checks were successful
Deploy Sokko G / deploy (push) Successful in 19s
This commit is contained in:
parent
418921934b
commit
e3bc4ae3c9
4 changed files with 125 additions and 38 deletions
|
|
@ -107,13 +107,6 @@ test("toolbox module registry and modules expose expected behavior", async () =>
|
|||
const combosUtils = await readFile("website/src/features/toolboxes/modules/combosUtils.js", "utf8");
|
||||
const calculatorModule = await readFile("website/src/features/toolboxes/modules/CalculatorModule.jsx", "utf8");
|
||||
const tableModule = await readFile("website/src/features/toolboxes/modules/TableModule.jsx", "utf8");
|
||||
const tableGrid = await readFile("website/src/features/toolboxes/modules/TableGrid.jsx", "utf8");
|
||||
const tableGridParts = await readFile("website/src/features/toolboxes/modules/TableGridParts.jsx", "utf8");
|
||||
const tableToolbar = await readFile("website/src/features/toolboxes/modules/TableToolbar.jsx", "utf8");
|
||||
const tableInteractions = await readFile("website/src/features/toolboxes/modules/useTableInteractions.js", "utf8");
|
||||
const tableClipboard = await readFile("website/src/features/toolboxes/modules/useTableClipboard.js", "utf8");
|
||||
const tableBundle = `${tableModule}\n${tableGrid}\n${tableGridParts}\n${tableToolbar}\n${tableInteractions}\n${tableClipboard}`;
|
||||
const tableUtils = await readFile("website/src/features/toolboxes/modules/tableUtils.js", "utf8");
|
||||
const tableFormulaEngine = await readFile("website/src/features/toolboxes/modules/tableFormulaEngine.js", "utf8");
|
||||
const timerModule = await readFile("website/src/features/toolboxes/modules/TimerModule.jsx", "utf8");
|
||||
const timerCountdown = await readFile("website/src/features/toolboxes/modules/TimerCountdown.jsx", "utf8");
|
||||
|
|
@ -288,38 +281,7 @@ test("toolbox module registry and modules expose expected behavior", async () =>
|
|||
assert.match(randomizerBundle, /type="randomizer"/);
|
||||
assert.match(calculatorModule, /ResizeObserver/);
|
||||
assert.match(calculatorModule, /--calculator-scroll-height/);
|
||||
assert.match(tableModule, /export function TableModule/);
|
||||
assert.match(tableBundle, /Icon name="add-row"/);
|
||||
assert.match(tableBundle, /Icon name="add-column"/);
|
||||
assert.match(tableBundle, /Icon name="remove-row"/);
|
||||
assert.match(tableBundle, /Icon name="remove-column"/);
|
||||
assert.match(tableBundle, /insertFormulaReferenceSelection/);
|
||||
assert.match(tableBundle, /startFormulaSelection/);
|
||||
assert.match(tableBundle, /copyTsv/);
|
||||
assert.match(tableBundle, /notepad-toolbar table-toolbar/);
|
||||
assert.match(tableBundle, /notepad-toolbar-group/);
|
||||
assert.match(tableBundle, /notepad-toolbar-button/);
|
||||
assert.match(tableBundle, /selection/);
|
||||
assert.match(tableBundle, /draggingSelectionRef/);
|
||||
assert.match(tableBundle, /movingSelectionRef/);
|
||||
assert.match(tableBundle, /copiedSelectionRef/);
|
||||
assert.match(tableUtils, /moveSelectionCells/);
|
||||
assert.match(tableUtils, /pasteCellBlock/);
|
||||
assert.match(tableUtils, /parseTsvBlock/);
|
||||
assert.match(tableGridParts, /is-move-target/);
|
||||
assert.match(tableUtils, /isMultiCellSelection/);
|
||||
assert.match(tableGrid, /export function TableGrid/);
|
||||
assert.match(tableBundle, /handleCellKeyDown/);
|
||||
assert.match(tableBundle, /clearSelection/);
|
||||
assert.match(tableBundle, /event\.key === "Delete"/);
|
||||
assert.match(tableBundle, /ArrowUp/);
|
||||
assert.match(tableBundle, /ArrowDown/);
|
||||
assert.match(tableBundle, /ArrowLeft/);
|
||||
assert.match(tableBundle, /ArrowRight/);
|
||||
assert.match(tableGridParts, /export function HeaderLabelInput/);
|
||||
assert.match(tableGridParts, /useInlineEdit/);
|
||||
assert.match(tableModule, /TextExchangeActions/);
|
||||
assert.match(tableGridParts, /event\.target\.select/);
|
||||
assert.match(tableFormulaEngine, /export function evaluateTableCell/);
|
||||
assert.doesNotMatch(tableFormulaEngine, /Function\(/);
|
||||
assert.doesNotMatch(tableFormulaEngine, /\beval\(/);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue