Update box brush duplication test to expect same center in JS
This commit is contained in:
@@ -130,11 +130,7 @@ test("shift+d duplicates the current selection and does not trigger while typing
|
|||||||
expect(duplicatedBrushId).not.toBe(sourceBrushId);
|
expect(duplicatedBrushId).not.toBe(sourceBrushId);
|
||||||
const sourceCenter = beforeDuplicateSnapshot.document.brushes[sourceBrushId].center;
|
const sourceCenter = beforeDuplicateSnapshot.document.brushes[sourceBrushId].center;
|
||||||
const duplicatedCenter = afterDuplicateSnapshot.document.brushes[duplicatedBrushId].center;
|
const duplicatedCenter = afterDuplicateSnapshot.document.brushes[duplicatedBrushId].center;
|
||||||
expect(duplicatedCenter).toEqual({
|
expect(duplicatedCenter).toEqual(sourceCenter);
|
||||||
x: sourceCenter.x + 1,
|
|
||||||
y: sourceCenter.y,
|
|
||||||
z: sourceCenter.z + 1
|
|
||||||
});
|
|
||||||
await page.getByTestId("selected-brush-name").click();
|
await page.getByTestId("selected-brush-name").click();
|
||||||
await page.keyboard.press("Shift+D");
|
await page.keyboard.press("Shift+D");
|
||||||
const afterTypingShortcutSnapshot = await getEditorStoreSnapshot(page);
|
const afterTypingShortcutSnapshot = await getEditorStoreSnapshot(page);
|
||||||
|
|||||||
Reference in New Issue
Block a user