Back to Fluentui

UnitTests

packages/charts/react-charting/docs/TestPlans/SparklineChart/UnitTests.md

4.40.2-hotfix21.5 KB
Original Source

Unit Test Plan - Sparkline Chart

Test stepsValidationTool used
Test 1: Get Line Path
- Get the Line path using ‘line’ class name.Should return Line path.RTL
- Get the stroke from line path.Should return the correct stroke value.RTL
- Get the opacity from line path.Should return the correct opacity value.RTL
Test 2: Get Area Path
- Get the Area path using ‘area’ class name.Should return Area path.RTL
- Get the fill-opacity from area path.Should return the correct fill-opacity value.RTL
- Get the opacity from area path.Should return the correct opacity value.RTL
Test 3: Is Chart Empty
- Empty DataShould return true when chart data is emptyRTL
- Non-Empty DataShould return false when chart data is non-emptyRTL