Skip to content

Commit 1b48f05

Browse files
authored
Merge pull request #337 from FalkorDB/fix-centerGraphTest
fix center graph test
2 parents 77f11ca + abe5488 commit 1b48f05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

e2e/tests/canvas.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ test.describe("Canvas tests", () => {
4949
await codeGraph.clickZoomOut();
5050
await codeGraph.clickCenter();
5151
const updatedGraph = await codeGraph.getCanvasScaling();
52-
expect(Math.abs(initialGraph.scaleX - updatedGraph.scaleX)).toBeLessThanOrEqual(0.05);
53-
expect(Math.abs(initialGraph.scaleY - updatedGraph.scaleY)).toBeLessThanOrEqual(0.05);
52+
expect(Math.abs(initialGraph.scaleX - updatedGraph.scaleX)).toBeLessThanOrEqual(0.1);
53+
expect(Math.abs(initialGraph.scaleY - updatedGraph.scaleY)).toBeLessThanOrEqual(0.1);
5454

5555
})
5656

0 commit comments

Comments
 (0)