mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
test: visual regression tests POC
This commit is contained in:
parent
debf2ad608
commit
733e45f3a9
11 changed files with 795 additions and 9 deletions
101
playwright/fixtures/arrows-one.json
Normal file
101
playwright/fixtures/arrows-one.json
Normal file
|
@ -0,0 +1,101 @@
|
|||
[
|
||||
{
|
||||
"id": "BVwXzIedYWBL09Y2nX0KF",
|
||||
"type": "rectangle",
|
||||
"x": 174.04421378335792,
|
||||
"y": 81.3412567234991,
|
||||
"width": 154.91157243328416,
|
||||
"height": 129.3174865530018,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "#ffec99",
|
||||
"fillStyle": "solid",
|
||||
"strokeWidth": 2,
|
||||
"strokeStyle": "solid",
|
||||
"roughness": 1,
|
||||
"opacity": 100,
|
||||
"groupIds": [],
|
||||
"frameId": null,
|
||||
"index": "a0",
|
||||
"roundness": { "type": 3 },
|
||||
"seed": 992438773,
|
||||
"version": 329,
|
||||
"versionNonce": 440377595,
|
||||
"isDeleted": false,
|
||||
"boundElements": [{ "id": "iNGJMoRFEGfpE_7rpHFXx", "type": "arrow" }],
|
||||
"updated": 1745151365372,
|
||||
"link": null,
|
||||
"locked": false
|
||||
},
|
||||
{
|
||||
"id": "3lo_9L23HMj6peiZEQRgP",
|
||||
"type": "rectangle",
|
||||
"x": 487.0442137833579,
|
||||
"y": 261.3412567234991,
|
||||
"width": 154.91157243328416,
|
||||
"height": 129.3174865530018,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "#ffec99",
|
||||
"fillStyle": "solid",
|
||||
"strokeWidth": 2,
|
||||
"strokeStyle": "solid",
|
||||
"roughness": 1,
|
||||
"opacity": 100,
|
||||
"groupIds": [],
|
||||
"frameId": null,
|
||||
"index": "a1",
|
||||
"roundness": { "type": 3 },
|
||||
"seed": 2129683285,
|
||||
"version": 346,
|
||||
"versionNonce": 744611387,
|
||||
"isDeleted": false,
|
||||
"boundElements": [{ "id": "iNGJMoRFEGfpE_7rpHFXx", "type": "arrow" }],
|
||||
"updated": 1745151365372,
|
||||
"link": null,
|
||||
"locked": false
|
||||
},
|
||||
{
|
||||
"id": "iNGJMoRFEGfpE_7rpHFXx",
|
||||
"type": "arrow",
|
||||
"x": 333.9557862166439,
|
||||
"y": 152.5,
|
||||
"width": 148.08842756671586,
|
||||
"height": 173.40000000000146,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "#ffec99",
|
||||
"fillStyle": "solid",
|
||||
"strokeWidth": 2,
|
||||
"strokeStyle": "solid",
|
||||
"roughness": 1,
|
||||
"opacity": 100,
|
||||
"groupIds": [],
|
||||
"frameId": null,
|
||||
"index": "a2",
|
||||
"roundness": null,
|
||||
"seed": 1175662773,
|
||||
"version": 764,
|
||||
"versionNonce": 1518717819,
|
||||
"isDeleted": false,
|
||||
"boundElements": [],
|
||||
"updated": 1745151365372,
|
||||
"link": null,
|
||||
"locked": false,
|
||||
"points": [
|
||||
[0, 0],
|
||||
[74.04421378335613, 0],
|
||||
[74.04421378335613, 173.40000000000146],
|
||||
[148.08842756671586, 173.40000000000146]
|
||||
],
|
||||
"lastCommittedPoint": null,
|
||||
"startBinding": { "elementId": "BVwXzIedYWBL09Y2nX0KF", "focus": 0.1005277812500645, "gap": 5.000000000001819, "fixedPoint": [1.032276478260881, 0.550263890625] },
|
||||
"endBinding": { "elementId": "3lo_9L23HMj6peiZEQRgP", "focus": -1.0645529565217953, "gap": 5, "fixedPoint": [-0.032276478260857715, 0.49922670937501124] },
|
||||
"startArrowhead": null,
|
||||
"endArrowhead": "arrow",
|
||||
"elbowed": true,
|
||||
"fixedSegments": null,
|
||||
"startIsSpecial": null,
|
||||
"endIsSpecial": null
|
||||
}
|
||||
]
|
204
playwright/fixtures/arrows-two.json
Normal file
204
playwright/fixtures/arrows-two.json
Normal file
|
@ -0,0 +1,204 @@
|
|||
[
|
||||
{
|
||||
"id": "Xo3RjhcpXLa6DjcVtxDri",
|
||||
"type": "rectangle",
|
||||
"x": 1179,
|
||||
"y": 331,
|
||||
"width": 267,
|
||||
"height": 191,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "transparent",
|
||||
"fillStyle": "solid",
|
||||
"strokeWidth": 2,
|
||||
"strokeStyle": "solid",
|
||||
"roughness": 1,
|
||||
"opacity": 100,
|
||||
"groupIds": [],
|
||||
"frameId": null,
|
||||
"index": "a1",
|
||||
"roundness": { "type": 3 },
|
||||
"seed": 1028156557,
|
||||
"version": 111,
|
||||
"versionNonce": 109424813,
|
||||
"isDeleted": false,
|
||||
"boundElements": [{ "id": "fhkE_Fih_UwkTM3HfUuzX", "type": "arrow" }],
|
||||
"updated": 1745178013738,
|
||||
"link": null,
|
||||
"locked": false
|
||||
},
|
||||
{
|
||||
"id": "ZHDr1basWXINseejrrZK2",
|
||||
"type": "rectangle",
|
||||
"x": 719,
|
||||
"y": 426,
|
||||
"width": 267,
|
||||
"height": 191,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "transparent",
|
||||
"fillStyle": "solid",
|
||||
"strokeWidth": 2,
|
||||
"strokeStyle": "solid",
|
||||
"roughness": 1,
|
||||
"opacity": 100,
|
||||
"groupIds": [],
|
||||
"frameId": null,
|
||||
"index": "a1V",
|
||||
"roundness": { "type": 3 },
|
||||
"seed": 291993955,
|
||||
"version": 416,
|
||||
"versionNonce": 1111758499,
|
||||
"isDeleted": false,
|
||||
"boundElements": [{ "id": "za2uzUxA2YIdiiQtExAJR", "type": "arrow" }],
|
||||
"updated": 1745178023824,
|
||||
"link": null,
|
||||
"locked": false
|
||||
},
|
||||
{
|
||||
"id": "46Ld6Tjxfx_5ZYjCHK1LS",
|
||||
"type": "rectangle",
|
||||
"x": 1173.195405,
|
||||
"y": 584,
|
||||
"width": 267,
|
||||
"height": 191,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "transparent",
|
||||
"fillStyle": "solid",
|
||||
"strokeWidth": 2,
|
||||
"strokeStyle": "solid",
|
||||
"roughness": 1,
|
||||
"opacity": 100,
|
||||
"groupIds": [],
|
||||
"frameId": null,
|
||||
"index": "a2",
|
||||
"roundness": { "type": 3 },
|
||||
"seed": 798366339,
|
||||
"version": 278,
|
||||
"versionNonce": 1382857891,
|
||||
"isDeleted": false,
|
||||
"boundElements": [{ "id": "fhkE_Fih_UwkTM3HfUuzX", "type": "arrow" }],
|
||||
"updated": 1745178013738,
|
||||
"link": null,
|
||||
"locked": false
|
||||
},
|
||||
{
|
||||
"id": "GxtNRM9YzQG_jtmvjVIIF",
|
||||
"type": "rectangle",
|
||||
"x": 588.1954049999999,
|
||||
"y": 508,
|
||||
"width": 267,
|
||||
"height": 191,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "transparent",
|
||||
"fillStyle": "solid",
|
||||
"strokeWidth": 2,
|
||||
"strokeStyle": "solid",
|
||||
"roughness": 1,
|
||||
"opacity": 100,
|
||||
"groupIds": [],
|
||||
"frameId": null,
|
||||
"index": "a2V",
|
||||
"roundness": { "type": 3 },
|
||||
"seed": 905019981,
|
||||
"version": 372,
|
||||
"versionNonce": 1009977827,
|
||||
"isDeleted": false,
|
||||
"boundElements": [{ "id": "za2uzUxA2YIdiiQtExAJR", "type": "arrow" }],
|
||||
"updated": 1745178023824,
|
||||
"link": null,
|
||||
"locked": false
|
||||
},
|
||||
{
|
||||
"id": "fhkE_Fih_UwkTM3HfUuzX",
|
||||
"type": "arrow",
|
||||
"x": 1451,
|
||||
"y": 426.4,
|
||||
"width": 352.80459500000006,
|
||||
"height": 253,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "transparent",
|
||||
"fillStyle": "solid",
|
||||
"strokeWidth": 2,
|
||||
"strokeStyle": "solid",
|
||||
"roughness": 1,
|
||||
"opacity": 100,
|
||||
"groupIds": [],
|
||||
"frameId": null,
|
||||
"index": "a3",
|
||||
"roundness": null,
|
||||
"seed": 921924867,
|
||||
"version": 622,
|
||||
"versionNonce": 1699025677,
|
||||
"isDeleted": false,
|
||||
"boundElements": null,
|
||||
"updated": 1745178013738,
|
||||
"link": null,
|
||||
"locked": false,
|
||||
"points": [
|
||||
[0, 0],
|
||||
[35, 0],
|
||||
[35, 126.60000000000002],
|
||||
[-317.80459500000006, 126.60000000000002],
|
||||
[-317.80459500000006, 253],
|
||||
[-282.80459500000006, 253]
|
||||
],
|
||||
"lastCommittedPoint": null,
|
||||
"startBinding": { "elementId": "Xo3RjhcpXLa6DjcVtxDri", "focus": -0.0010471204188477784, "gap": 5, "fixedPoint": [1.0187265917602997, 0.4994764397905758] },
|
||||
"endBinding": { "elementId": "46Ld6Tjxfx_5ZYjCHK1LS", "focus": -1.0374531835205993, "gap": 5, "fixedPoint": [-0.018726591760299626, 0.4994764397905758] },
|
||||
"startArrowhead": null,
|
||||
"endArrowhead": "arrow",
|
||||
"elbowed": true,
|
||||
"fixedSegments": null,
|
||||
"startIsSpecial": null,
|
||||
"endIsSpecial": null
|
||||
},
|
||||
{
|
||||
"id": "za2uzUxA2YIdiiQtExAJR",
|
||||
"type": "arrow",
|
||||
"x": 991,
|
||||
"y": 521.4,
|
||||
"width": 477.80459500000006,
|
||||
"height": 218.39999999999998,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "transparent",
|
||||
"fillStyle": "solid",
|
||||
"strokeWidth": 2,
|
||||
"strokeStyle": "solid",
|
||||
"roughness": 1,
|
||||
"opacity": 100,
|
||||
"groupIds": [],
|
||||
"frameId": null,
|
||||
"index": "a4",
|
||||
"roundness": null,
|
||||
"seed": 2107135235,
|
||||
"version": 1330,
|
||||
"versionNonce": 49163555,
|
||||
"isDeleted": false,
|
||||
"boundElements": null,
|
||||
"updated": 1745178023824,
|
||||
"link": null,
|
||||
"locked": false,
|
||||
"points": [
|
||||
[0, 0],
|
||||
[35, 0],
|
||||
[35, -136.39999999999998],
|
||||
[-442.80459500000006, -136.39999999999998],
|
||||
[-442.80459500000006, 82],
|
||||
[-407.80459500000006, 82]
|
||||
],
|
||||
"lastCommittedPoint": null,
|
||||
"startBinding": { "elementId": "ZHDr1basWXINseejrrZK2", "focus": -0.0010471204188477784, "gap": 5, "fixedPoint": [1.0187265917602997, 0.4994764397905758] },
|
||||
"endBinding": { "elementId": "GxtNRM9YzQG_jtmvjVIIF", "focus": -1.0374531835205993, "gap": 5, "fixedPoint": [-0.018726591760299626, 0.4994764397905758] },
|
||||
"startArrowhead": null,
|
||||
"endArrowhead": "arrow",
|
||||
"elbowed": true,
|
||||
"fixedSegments": null,
|
||||
"startIsSpecial": null,
|
||||
"endIsSpecial": null
|
||||
}
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue