Skip to content

HDDS-9796. [Recon][UI][Test] Add tests for Heatmap page - #11825

Open
sravani-revuri wants to merge 1 commit into
apache:masterfrom
sravani-revuri:HDDS-9796
Open

sravani-revuri wants to merge 1 commit into
apache:masterfrom
sravani-revuri:HDDS-9796

Conversation

@sravani-revuri

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

addition of UI tests for the Heatmap page in Ozone Recon.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-9796

How was this patch tested?

Ran test.

 ✓ src/__tests__/heatmap/HeatmapPlot.test.tsx > HeatmapPlot tooltips > shows size, access count, and entity name for a leaf tile (hover tooltip content) 6ms
 ✓ src/__tests__/heatmap/HeatmapPlot.test.tsx > HeatmapPlot tooltips > shows max access count for a non-leaf group tile (hover tooltip content) 1ms
 ✓ src/__tests__/heatmap/HeatmapPlot.test.tsx > HeatmapPlot tooltips > uses entity type in chart title 1ms
 ✓ src/__tests__/heatmap/Heatmap.test.tsx > Heatmap page > renders header, filters, legend, and heatmap plot with data 66ms
 ✓ src/__tests__/heatmap/Heatmap.test.tsx > Heatmap page > shows validation error for invalid path characters 71ms
 ✓ src/__tests__/heatmap/Heatmap.test.tsx > Heatmap page > fetches heatmap for a new path when the user searches 47ms
 ✓ src/__tests__/heatmap/Heatmap.test.tsx > Heatmap page > does not fetch when searching with an empty path 69ms
 ✓ src/__tests__/heatmap/Heatmap.test.tsx > Heatmap page > drills down into the clicked entity and updates the path input 17ms
 ✓ src/__tests__/heatmap/Heatmap.test.tsx > Heatmap page > refetches heatmap when the entity type is changed 180ms
 ✓ src/__tests__/heatmap/Heatmap.test.tsx > Heatmap page > refetches heatmap when the time period is changed 176ms
 ✓ src/__tests__/heatmap/Heatmap.test.tsx > Heatmap page > shows no data warning when the API returns empty labels 39ms
 ✓ src/__tests__/heatmap/Heatmap.test.tsx > Heatmap page > shows disabled state when heatmap API returns 404 6ms
 ✓ src/__tests__/heatmap/Heatmap.test.tsx > Heatmap page > shows fetch error state when heatmap API returns 500 9ms

 Test Files  2 passed (2)
      Tests  13 passed (13)
   Start at  19:39:47
   Duration  2.74s (transform 129ms, setup 163ms, import 2.33s, tests 690ms, environment 620ms)

@sravani-revuri

Copy link
Copy Markdown
Contributor Author

@chihsuan would you like to review this?

@sravani-revuri
sravani-revuri marked this pull request as ready for review October 29, 2026 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant