From 946452c7b46ab9b8faf679824131744bfb8c6605 Mon Sep 17 00:00:00 2001 From: pranavm2109 Date: Mon, 14 Apr 2025 14:38:23 -0400 Subject: [PATCH] updated tests Co-authored-by: Shahir Ahmed --- cypress/integration/rendering/xyChart.spec.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cypress/integration/rendering/xyChart.spec.js b/cypress/integration/rendering/xyChart.spec.js index ebe9c7906..a582355e8 100644 --- a/cypress/integration/rendering/xyChart.spec.js +++ b/cypress/integration/rendering/xyChart.spec.js @@ -542,7 +542,7 @@ describe('XY Chart', () => { // Check horizontal alignment (within tolerance) expect(textProps.x + textProps.width / 2).to.be.closeTo( barProps.x + barProps.width / 2, - 1 + 5 ); expect(textProps.y).to.be.greaterThan(barProps.y); @@ -600,7 +600,7 @@ describe('XY Chart', () => { expect(textProps.y + textProps.height).to.be.lessThan(barProps.y + barProps.height); expect(textProps.y + textProps.height / 2).to.be.closeTo( barProps.y + barProps.height / 2, - 1 + 5 ); }); }); @@ -653,7 +653,7 @@ describe('XY Chart', () => { // Check horizontal alignment (within tolerance) expect(textProps.x + textProps.width / 2).to.be.closeTo( barProps.x + barProps.width / 2, - 1 + 5 ); expect(textProps.y).to.be.greaterThan(barProps.y); @@ -711,7 +711,7 @@ describe('XY Chart', () => { expect(textProps.y + textProps.height).to.be.lessThan(barProps.y + barProps.height); expect(textProps.y + textProps.height / 2).to.be.closeTo( barProps.y + barProps.height / 2, - 1 + 5 ); }); }); @@ -764,7 +764,7 @@ describe('XY Chart', () => { // Check horizontal alignment (within tolerance) expect(textProps.x + textProps.width / 2).to.be.closeTo( barProps.x + barProps.width / 2, - 1 + 5 ); expect(textProps.y).to.be.greaterThan(barProps.y); @@ -822,7 +822,7 @@ describe('XY Chart', () => { expect(textProps.y + textProps.height).to.be.lessThan(barProps.y + barProps.height); expect(textProps.y + textProps.height / 2).to.be.closeTo( barProps.y + barProps.height / 2, - 1 + 5 ); }); });