mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-21 03:49:30 +00:00
test(grid): update cell detail action tests to use displayIndex for consistency
This commit is contained in:
@@ -86,6 +86,6 @@ test("cell detail action focuses the hovered cell before opening details", () =>
|
||||
/function showCellDetailsForVisibleCell\(rowIndex: number, visibleColIdx: number, actualColIdx: number\)/,
|
||||
);
|
||||
assert.match(source, /selectSingleCell\(rowIndex, visibleColIdx\)/);
|
||||
assert.match(source, /@click\.stop="showCellDetailsForVisibleCell\(index, visibleColIdx, actualColIdx\)"/);
|
||||
assert.doesNotMatch(source, /@click\.stop="showCellDetails\(index, actualColIdx\)"/);
|
||||
assert.match(source, /@click\.stop="showCellDetailsForVisibleCell\(item\.displayIndex, visibleColIdx, actualColIdx\)"/);
|
||||
assert.doesNotMatch(source, /@click\.stop="showCellDetails\(item\.displayIndex, actualColIdx\)"/);
|
||||
});
|
||||
|
||||
@@ -6,7 +6,7 @@ const dataGridSource = readFileSync("apps/desktop/src/components/grid/DataGrid.v
|
||||
|
||||
test("data grid mounts the cell detail action only for the active cell", () => {
|
||||
assert.match(dataGridSource, /cellDetailButtonVisible/);
|
||||
assert.match(dataGridSource, /v-if="cellDetailButtonVisible\(index, actualColIdx\)"/);
|
||||
assert.match(dataGridSource, /@mouseenter="onCellMouseenter\(index, visibleColIdx, actualColIdx\)"/);
|
||||
assert.match(dataGridSource, /v-if="cellDetailButtonVisible\(item\.displayIndex, actualColIdx\)"/);
|
||||
assert.match(dataGridSource, /@mouseenter="onCellMouseenter\(item\.displayIndex, visibleColIdx, actualColIdx\)"/);
|
||||
assert.doesNotMatch(dataGridSource, /group-hover\/cell:flex/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user