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 b30a142a5d8f6b3b876acdd730edb44d81845952..1d938d226863670c3ffe9ce570ef9d31490e28b9 100644 --- a/assets/src/scripts/monitoring-location/components/hydrograph/data-table.js +++ b/assets/src/scripts/monitoring-location/components/hydrograph/data-table.js @@ -85,6 +85,7 @@ debugger; export const drawDataTables = function(elem, store) { elem.append('div') + .attr('id', 'hydrograph-data-tables') .call(link(store, drawDataTable, createStructuredSelector({ dataKind: () => 'iv', currentData: getCurrentPointData 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 83ea4a2be15b0ee4139e6b9235e74c0f5fd20624..f10948ce8185b30d0caa648a984a2e3a89a56df5 100644 --- a/assets/src/scripts/monitoring-location/components/hydrograph/index.test.js +++ b/assets/src/scripts/monitoring-location/components/hydrograph/index.test.js @@ -649,7 +649,10 @@ describe('monitoring-location/components/hydrograph module', () => { // one for each of the two parameters and the WaterAlert links expect(selectAll('table .usa-tooltip').size()).toBe(4); }); - // Removed the data table test which just wasn't working. + + it('should have data tables for hydrograph data', () => { + expect(select('#hydrograph-data-tables').size()).toBe(1); + }) }); describe('hide elements when showOnlyGraph is set to true', () => {