test: avoid grid drag rounding boundary
This commit is contained in:
1 parent
d6b114e423
commit
d1a2ed8fd7
1 file changed
+1
-1
@@ -290,7 +290,7 @@ describe("Board grid", () => {
|
|||||||
// row limit, and items can occupy empty rows below their original position.
|
// row limit, and items can occupy empty rows below their original position.
|
||||||
for (let targetRow = 1; targetRow <= 8; targetRow += 1) {
|
for (let targetRow = 1; targetRow <= 8; targetRow += 1) {
|
||||||
await firstItem.evaluate((element) => element.scrollIntoView({ block: "center", behavior: "instant" }));
|
await firstItem.evaluate((element) => element.scrollIntoView({ block: "center", behavior: "instant" }));
|
||||||
await dragLocatorByAsync(page, getEditorEntry(firstItem), 0, logicalCellPitch * canvasScale);
|
await dragLocatorByAsync(page, getEditorEntry(firstItem), 0, logicalCellPitch * canvasScale + 2);
|
||||||
await expect(firstItem).toHaveAttribute("data-grid-y", String(targetRow));
|
await expect(firstItem).toHaveAttribute("data-grid-y", String(targetRow));
|
||||||
}
|
}
|
||||||
await expect(firstItem).toHaveAttribute("data-grid-y", "8");
|
await expect(firstItem).toHaveAttribute("data-grid-y", "8");
|
||||||
|
|||||||
Reference in new issue
Block a user