Back to Fluentui

UnitTests

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

4.40.2-hotfix28.9 KB
Original Source

Unit Test Plan – Heat Map Chart

Test stepsValidationTool used
Test 1: Get X and Y
- With string xPoint and yPointShould return proper X and Y values for string xPoint and yPointRTL
- With numeric xPoint and yPointShould return proper X and Y values for numeric xPoint and yPointRTL
- With date xPoint and yPointShould return proper X and Y values for date xPoint and yPointRTL
Test 2: Get Opacity
- Non empty dataShould return proper opacity for legendsRTL
Test 3: Create Legend Bars
- Non empty dataShould return proper legends dataRTL
Test 4: Get color scale
- Non Empty DataShould return proper color scale dataRTL
Test 5: Get X index
- With string xPointShould return proper xIndex for string xPointRTL
- With numeric xPointShould return proper xIndex for number xPointRTL
- With date xPointShould return proper xIndex for date xPointRTL
Test 6: Get Y index
- With string yPointShould return proper yIndex for string yPointRTL
- With numeric yPointShould return proper yIndex for numeric yPointRTL
- With date yPointShould return proper yIndex for date yPointRTL
Test 7: Get Aria-Label
- With numeric xPoint and yPointShould return proper aria-label for numeric xPoint and yPointRTL
- With numeric xPoint and yPoint without legend valueShould return proper aria-label for numeric xPoint and yPoint without legend valueRTL
- With string xPoint and yPointShould return proper aria-label for String xPoint and yPointRTL
- With string xPoint and yPoint without legendShould return proper aria-label for string xPoint and yPoint without legendRTL
- With date xPoint and yPointShould return proper aria-label for date xPoint and yPointRTL
- With date xPoint and yPoint without legendShould return proper aria-label for date xPoint and yPoint without legendRTL
- With numeric xPoint and date yPoint<p>Should return proper aria-label for numeric xPoint and date yPoint</p><p></p>RTL
Test 8: Get formatted label for xAxis data point
- Non-empty data<p>Should return proper xAxis label for non-empty string</p><p></p>RTLs
- Empty data<p>Should return proper xAxis label for empty string</p><p></p>RTL
Test 8: Get formatted label for yAxis data point
- Non-empty data<p>Should return proper yAxis label for non empty string</p><p></p>RTL
- Empty data<p>Should return proper yAxis label for empty data</p><p></p>RTL
Test 9: Get string formatted number
- With numeric value as a string<p>Should return proper string formatted number for numeric value</p><p></p>RTL
- With format string<p>Should return proper string formatted number with format string</p><p></p>RTL
- Empty string<p>Should return proper string formatted number for empty data</p><p></p>RTL
- With string value<p>Should return proper string formatted number for string value</p><p></p>RTL
Test 9: Get string formatted date
- With numeric point<p>Should return proper string formatted date for date point</p><p></p>RTL
- With empty valueShould return proper string formatted date for empty pointRTL
- With numeric point and format stringShould return proper string formatted date for date point with format stringRTL
Test 9: Get xAxis data points
- With string points<p>Should return proper xAxis data points for string points</p><p></p>RTL
- With numeric points<p>'Should return proper xAxis data points for numeric points</p><p></p>RTL
- With date points<p>'Should return proper xAxis data points for date points</p><p></p>RTL
Test 9: Get yAxis data points
- With string points<p>Should return proper yAxis data points for string points</p><p></p>RTL
- With numeric points<p>Should return proper yAxis data points for numeric points</p><p></p>RTL
- With date points<p>Should return proper yAxis data points for date points</p><p></p>RTL
Test 10: Create data set
- With default axis type<p>Should return proper data set for default axis type</p><p></p>RTL
- AxisType as string<p>Should return proper data set for string axis type</p><p></p>RTL
- With date axis data and default axis type<p>Should return proper data set for date axis with default axis type</p><p></p>RTL
- With date axis data and AxisType as date<p>Should return proper data set for date axis with date axis type</p><p></p>RTL
- AxisType as numeric<p>Should return proper data set for numeric axis type</p><p></p>RTL