fix(data-grid): restore column quick filtering
This commit is contained in:
2 files changed
+46
-11
No files matched your search
@@ -10,4 +10,26 @@ describe("DataGrid context extractor lifecycle", () => {
|
||||
expect(source).toContain("queueMicrotask(() => {");
|
||||
expect(source).toContain("invalidateSyntheticContextSelection();");
|
||||
});
|
||||
|
||||
it("resolves menu items after the right-click target is updated", () => {
|
||||
expect(source).toContain(':items="currentGridContextMenuItems"');
|
||||
expect(source).toContain("return gridContextMenuItems.value;");
|
||||
});
|
||||
|
||||
it("snapshots the filter target before asynchronous value hydration", () => {
|
||||
const start = source.indexOf("async function contextFilterCondition");
|
||||
const end = source.indexOf("async function applyContextFilter", start);
|
||||
const filterSource = source.slice(start, end);
|
||||
|
||||
expect(start).toBeGreaterThanOrEqual(0);
|
||||
expect(end).toBeGreaterThan(start);
|
||||
expect(filterSource).toContain("const target = contextCell.value;");
|
||||
expect(filterSource).toContain("const sourceResult = props.result;");
|
||||
expect(filterSource).toContain("const sourceIndex = sourceItem.sourceIndex;");
|
||||
expect(filterSource).toContain("await hydrateLargeValueCell(target.rowId, target.col)");
|
||||
expect(filterSource).toContain("sourceResult.rows[sourceIndex]?.[target.col]");
|
||||
expect(filterSource).not.toContain("getRowItem(target.rowId);\n if (!item)");
|
||||
expect(filterSource).not.toContain("contextColumn.value");
|
||||
expect(filterSource).not.toContain("contextCellValue.value");
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user