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:
authorLuke Bennett <lukeeeebennettplus@gmail.com>2018-08-15 01:51:24 +0300
committerLuke Bennett <lukeeeebennettplus@gmail.com>2018-08-15 01:51:24 +0300
commit2cfa4f4888dd753d62a3f42cd02860828f1b0f56 (patch)
tree47f31a5adb29d9cf129c92eef4f5c33d9dfcef15 /spec/features/instance_statistics
parent401bcf043cb298fd074f94719dec263af2823bbd (diff)
Add test for usage ping js in cohorts_spec
Diffstat (limited to 'spec/features/instance_statistics')
-rw-r--r--spec/features/instance_statistics/cohorts_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/features/instance_statistics/cohorts_spec.rb b/spec/features/instance_statistics/cohorts_spec.rb
index 81fc5eff980..573f8600be1 100644
--- a/spec/features/instance_statistics/cohorts_spec.rb
+++ b/spec/features/instance_statistics/cohorts_spec.rb
@@ -12,4 +12,12 @@ describe 'Cohorts page' do
expect(page).to have_content("#{Time.now.strftime('%b %Y')} 3 0")
end
+
+ it 'shows usage data', :js do
+ visit instance_statistics_cohorts_path
+
+ wait_for_requests
+
+ expect(find('.js-syntax-highlight').text).not_to eq('')
+ end
end