diff --git a/assets/src/scripts/monitoring-location/components/hydrograph/data-table.js b/assets/src/scripts/monitoring-location/components/hydrograph/data-table.js index aa967d7c5b825914997b7408a13bb20005167ae2..941ed547c6f405dbc501b590e31a832793ca5222 100644 --- a/assets/src/scripts/monitoring-location/components/hydrograph/data-table.js +++ b/assets/src/scripts/monitoring-location/components/hydrograph/data-table.js @@ -91,12 +91,13 @@ const drawDataTable = function(elem, {dataKind, currentData}) { */ export const drawDataTables = function(elem, store) { elem.append('div') - .attr('id', 'hydrograph-data-tables') + .attr('id', 'iv-hydrograph-data-table-container') .call(link(store, drawDataTable, createStructuredSelector({ dataKind: () => 'iv', currentData: getCurrentPointData }))); elem.append('div') + .attr('id', 'gw-hydrograph-data-table-container') .call(link(store, drawDataTable, createStructuredSelector({ dataKind: () => 'gw', currentData: getVisibleGroundwaterLevelsTableData 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 f10948ce8185b30d0caa648a984a2e3a89a56df5..58c02f3bf45ba972c1181f721da80e976c6444c8 100644 --- a/assets/src/scripts/monitoring-location/components/hydrograph/index.test.js +++ b/assets/src/scripts/monitoring-location/components/hydrograph/index.test.js @@ -651,8 +651,9 @@ describe('monitoring-location/components/hydrograph module', () => { }); it('should have data tables for hydrograph data', () => { - expect(select('#hydrograph-data-tables').size()).toBe(1); - }) + expect(select('#iv-hydrograph-data-table-container').size()).toBe(1); + expect(select('#gw-hydrograph-data-table-container').size()).toBe(1); + }); }); describe('hide elements when showOnlyGraph is set to true', () => {