diff options
Diffstat (limited to 'spec/frontend/projects/pipelines/charts/components/ci_cd_analytics_charts_spec.js')
-rw-r--r-- | spec/frontend/projects/pipelines/charts/components/ci_cd_analytics_charts_spec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/frontend/projects/pipelines/charts/components/ci_cd_analytics_charts_spec.js b/spec/frontend/projects/pipelines/charts/components/ci_cd_analytics_charts_spec.js index 7bb289408b8..8c18d2992ea 100644 --- a/spec/frontend/projects/pipelines/charts/components/ci_cd_analytics_charts_spec.js +++ b/spec/frontend/projects/pipelines/charts/components/ci_cd_analytics_charts_spec.js @@ -81,7 +81,7 @@ describe('~/vue_shared/components/ci_cd_analytics/ci_cd_analytics_charts.vue', ( it('should select a different chart on change', async () => { findSegmentedControl().vm.$emit('input', 1); - const chart = wrapper.find(CiCdAnalyticsAreaChart); + const chart = wrapper.findComponent(CiCdAnalyticsAreaChart); await nextTick(); @@ -92,7 +92,7 @@ describe('~/vue_shared/components/ci_cd_analytics/ci_cd_analytics_charts.vue', ( it('should not display charts if there are no charts', () => { wrapper = createWrapper({ charts: [] }); - expect(wrapper.find(CiCdAnalyticsAreaChart).exists()).toBe(false); + expect(wrapper.findComponent(CiCdAnalyticsAreaChart).exists()).toBe(false); }); describe('slots', () => { |