test: fix accidental resizing in grouping test

This commit is contained in:
Alex Kim 2022-10-30 14:15:29 +03:00
parent d1be72ffc2
commit aa289a63fb
No known key found for this signature in database
GPG key ID: CEE74CFA44D238D7
2 changed files with 10 additions and 9 deletions

View file

@ -15288,7 +15288,10 @@ Object {
"penMode": false,
"pendingImageElementId": null,
"previousSelectedElementIds": Object {
"id0": true,
"id1": true,
"id2": true,
"id3": true,
},
"resizingElement": null,
"scrollX": 0,
@ -15298,7 +15301,6 @@ Object {
"id0": true,
"id1": true,
"id2": true,
"id3": true,
"id5": true,
},
"selectedGroupIds": Object {},
@ -15346,7 +15348,7 @@ Object {
"type": "rectangle",
"updated": 1,
"version": 4,
"versionNonce": 1505387817,
"versionNonce": 23633383,
"width": 10,
"x": 10,
"y": 10,
@ -15377,7 +15379,7 @@ Object {
"type": "rectangle",
"updated": 1,
"version": 4,
"versionNonce": 23633383,
"versionNonce": 493213705,
"width": 10,
"x": 30,
"y": 10,
@ -15408,7 +15410,7 @@ Object {
"type": "rectangle",
"updated": 1,
"version": 4,
"versionNonce": 493213705,
"versionNonce": 915032327,
"width": 10,
"x": 50,
"y": 10,
@ -15759,7 +15761,6 @@ Object {
"id0": true,
"id1": true,
"id2": true,
"id3": true,
"id5": true,
},
"selectedGroupIds": Object {},
@ -15789,7 +15790,7 @@ Object {
"type": "rectangle",
"updated": 1,
"version": 4,
"versionNonce": 1505387817,
"versionNonce": 23633383,
"width": 10,
"x": 10,
"y": 10,
@ -15817,7 +15818,7 @@ Object {
"type": "rectangle",
"updated": 1,
"version": 4,
"versionNonce": 23633383,
"versionNonce": 493213705,
"width": 10,
"x": 30,
"y": 10,
@ -15845,7 +15846,7 @@ Object {
"type": "rectangle",
"updated": 1,
"version": 4,
"versionNonce": 493213705,
"versionNonce": 915032327,
"width": 10,
"x": 50,
"y": 10,

View file

@ -542,7 +542,7 @@ describe("regression tests", () => {
expect(element.groupIds.length).toBe(1);
}
mouse.reset();
mouse.moveTo(-10, -10); // the NW resizing handle is at [0, 0], so moving further
mouse.down();
mouse.restorePosition(...end);
mouse.up();