diff --git a/assets/src/scripts/monitoring-location/components/hydrograph/index.test.js b/assets/src/scripts/monitoring-location/components/hydrograph/index.test.js index 46a46570c05058ef901ae14318558026a0d1cb64..b565008e9138340642da2b549d4938df1dc91ce9 100644 --- a/assets/src/scripts/monitoring-location/components/hydrograph/index.test.js +++ b/assets/src/scripts/monitoring-location/components/hydrograph/index.test.js @@ -341,7 +341,7 @@ describe('monitoring-location/components/hydrograph module', () => { }); it('should have two download data forms', () => { - expect(selectAll('#download-graph-data-container').size()).toBe(1); + expect(selectAll('#download-graph-data-container-select-actions').size()).toBe(1); expect(selectAll('#download-graph-data-container-data-table').size()).toBe(1); }); @@ -451,7 +451,7 @@ describe('monitoring-location/components/hydrograph module', () => { }); it('should not have the download data element', () => { - expect(selectAll('#download-graph-data-container').size()).toBe(0); + expect(selectAll('#download-graph-data-container-select-actions').size()).toBe(0); }); it('should not have method select element', () => { diff --git a/assets/src/scripts/monitoring-location/components/hydrograph/select-actions.js b/assets/src/scripts/monitoring-location/components/hydrograph/select-actions.js index 3331547fc6c94d35efb7f478d0699e5ce5a1c630..effb745b40be2b17c0c7017d442cce7fb7b62a91 100644 --- a/assets/src/scripts/monitoring-location/components/hydrograph/select-actions.js +++ b/assets/src/scripts/monitoring-location/components/hydrograph/select-actions.js @@ -72,11 +72,11 @@ export const drawSelectActions = function(container, store, siteno, agencyCode) appendButton(listContainer, { uswdsIcon: 'file_download', buttonLabel: 'Retrieve data', - idOfDivToControl: 'download-graph-data-container' + idOfDivToControl: 'download-graph-data-container-select-actions' }); container.append('div') - .attr('id', 'download-graph-data-container') + .attr('id', 'download-graph-data-container-select-actions') .attr('class', 'download-graph-data-container') .attr('hidden', true) .call(drawDownloadForm, store, siteno, agencyCode, 'hydrograph'); diff --git a/assets/src/scripts/monitoring-location/components/hydrograph/select-actions.test.js b/assets/src/scripts/monitoring-location/components/hydrograph/select-actions.test.js index 85618b16eb005bbbecd9f41042d94fa6485060c0..32c90a4d38a12b836b8cd1d8b3d9401ac7de2480 100644 --- a/assets/src/scripts/monitoring-location/components/hydrograph/select-actions.test.js +++ b/assets/src/scripts/monitoring-location/components/hydrograph/select-actions.test.js @@ -11,7 +11,7 @@ describe('monitoring-location/components/hydrograph/select-actions', () => { let testDiv; let store; const TIME_FORM_ID = 'change-time-span-container'; - const DOWNLOAD_FORM_ID = 'download-graph-data-container'; + const DOWNLOAD_FORM_ID = 'download-graph-data-container-select-actions'; describe('Tests when iv or gw data is available', () => { const TEST_STATE = {