Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-08-18 03:10:36 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-08-18 03:10:36 +0300
commitd8b613250b5dcbf371d81a99bdebf559bb89abb6 (patch)
tree8245e9045b1c433b93b651e0c3982cbdfc67111b /spec/services/metrics
parent9facfe5cb194005894467c06e4ea1a9800034ab4 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/services/metrics')
-rw-r--r--spec/services/metrics/dashboard/custom_dashboard_service_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/services/metrics/dashboard/custom_dashboard_service_spec.rb b/spec/services/metrics/dashboard/custom_dashboard_service_spec.rb
index 33643a2fbb2..6bfbbf9b076 100644
--- a/spec/services/metrics/dashboard/custom_dashboard_service_spec.rb
+++ b/spec/services/metrics/dashboard/custom_dashboard_service_spec.rb
@@ -57,6 +57,14 @@ RSpec.describe Metrics::Dashboard::CustomDashboardService, :use_clean_rails_memo
described_class.new(*service_params).get_dashboard
end
+ it 'tracks panel type' do
+ expect(::Gitlab::Tracking).to receive(:event).with(
+ 'MetricsDashboard::Chart', 'chart_rendered', { label: 'Chart Type', value: 'area-chart' }
+ ).at_least(:once)
+
+ described_class.new(*service_params).get_dashboard
+ end
+
context 'and the dashboard is then deleted' do
it 'does not return the previously cached dashboard' do
described_class.new(*service_params).get_dashboard