diff --git a/tests/javascripts/activityChart.test.js b/tests/javascripts/activityChart.test.js
index 8e3d406ea..427c93ac2 100644
--- a/tests/javascripts/activityChart.test.js
+++ b/tests/javascripts/activityChart.test.js
@@ -21,7 +21,7 @@ Object.defineProperty(HTMLElement.prototype, 'clientWidth', {
beforeAll(done => {
// Set up the DOM with the D3 script included
document.body.innerHTML = `
-
+
+
+
+
`;
// Load the D3 script dynamically
@@ -178,3 +181,59 @@ const data = await fetchData('service');
expect(global.fetch).toHaveBeenCalledWith('/daily_stats.json');
expect(data).toEqual(mockResponse);
});
+
+test('handleDropdownChange updates DOM for individual selection', () => {
+ document.body.innerHTML = `
+