summaryrefslogtreecommitdiff
path: root/spec/features/instance_statistics/dev_ops_score_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/instance_statistics/dev_ops_score_spec.rb')
-rw-r--r--spec/features/instance_statistics/dev_ops_score_spec.rb60
1 files changed, 0 insertions, 60 deletions
diff --git a/spec/features/instance_statistics/dev_ops_score_spec.rb b/spec/features/instance_statistics/dev_ops_score_spec.rb
deleted file mode 100644
index da87aedab5c..00000000000
--- a/spec/features/instance_statistics/dev_ops_score_spec.rb
+++ /dev/null
@@ -1,60 +0,0 @@
-# frozen_string_literal: true
-
-require 'spec_helper'
-
-RSpec.describe 'DevOps Score' do
- before do
- sign_in(create(:admin))
- end
-
- it 'has dismissable intro callout', :js do
- visit instance_statistics_dev_ops_score_index_path
-
- expect(page).to have_content 'Introducing Your DevOps Score'
-
- find('.js-close-callout').click
-
- expect(page).not_to have_content 'Introducing Your DevOps Score'
- end
-
- context 'when usage ping is disabled' do
- before do
- stub_application_setting(usage_ping_enabled: false)
- end
-
- it 'shows empty state' do
- visit instance_statistics_dev_ops_score_index_path
-
- expect(page).to have_content('Usage ping is not enabled')
- end
-
- it 'hides the intro callout' do
- visit instance_statistics_dev_ops_score_index_path
-
- expect(page).not_to have_content 'Introducing Your DevOps Score'
- end
- end
-
- context 'when there is no data to display' do
- it 'shows empty state' do
- stub_application_setting(usage_ping_enabled: true)
-
- visit instance_statistics_dev_ops_score_index_path
-
- expect(page).to have_content('Data is still calculating')
- end
- end
-
- context 'when there is data to display' do
- it 'shows numbers for each metric' do
- stub_application_setting(usage_ping_enabled: true)
- create(:dev_ops_score_metric)
-
- visit instance_statistics_dev_ops_score_index_path
-
- expect(page).to have_content(
- 'Issues created per active user 1.2 You 9.3 Lead 13.3%'
- )
- end
- end
-end