fix: flaky snapshot tests with floating point precision issues (#8049)

This commit is contained in:
Marcel Mraz
2024-05-23 10:51:01 +01:00
committed by GitHub
parent defd34923a
commit 661d6a4a75
8 changed files with 205 additions and 188 deletions

View File

@@ -10758,7 +10758,7 @@ exports[`regression tests > pinch-to-zoom works > [end of test] appState 1`] = `
"pendingImageElementId": null,
"previousSelectedElementIds": {},
"resizingElement": null,
"scrollX": -6.2500000000000036,
"scrollX": "-6.25000",
"scrollY": 0,
"scrolledOutside": false,
"selectedElementIds": {},
@@ -13697,7 +13697,7 @@ exports[`regression tests > two-finger scroll works > [end of test] appState 1`]
"previousSelectedElementIds": {},
"resizingElement": null,
"scrollX": 20,
"scrollY": -18.535533905932738,
"scrollY": "-18.53553",
"scrolledOutside": false,
"selectedElementIds": {},
"selectedElementsAreBeingDragged": false,