diff options
Diffstat (limited to 'spec/frontend/monitoring/charts/time_series_spec.js')
-rw-r--r-- | spec/frontend/monitoring/charts/time_series_spec.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/frontend/monitoring/charts/time_series_spec.js b/spec/frontend/monitoring/charts/time_series_spec.js index efc2da40a52..15967992374 100644 --- a/spec/frontend/monitoring/charts/time_series_spec.js +++ b/spec/frontend/monitoring/charts/time_series_spec.js @@ -45,10 +45,11 @@ describe('Time series component', () => { store.commit(`monitoringDashboard/${types.RECEIVE_DEPLOYMENTS_DATA_SUCCESS}`, deploymentData); - // Mock data contains 2 panels, pick the first one + // Mock data contains 2 panel groups, with 1 and 2 panels respectively store.commit(`monitoringDashboard/${types.SET_QUERY_RESULT}`, mockedQueryResultPayload); - [mockGraphData] = store.state.monitoringDashboard.dashboard.panel_groups[0].panels; + // Pick the second panel group and the first panel in it + [mockGraphData] = store.state.monitoringDashboard.dashboard.panel_groups[1].panels; makeTimeSeriesChart = (graphData, type) => shallowMount(TimeSeries, { |