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:57:21 +0300
committerLuke Bennett <lukeeeebennettplus@gmail.com>2018-08-15 01:57:21 +0300
commit02fda22f19b21666323df545d3f817a7f66a1b6a (patch)
treee7c0f81a9334fa1b891af5e395c1eee8b9ce3b59 /spec/features/instance_statistics
parent2cfa4f4888dd753d62a3f42cd02860828f1b0f56 (diff)
add test for convdev index user callout
Diffstat (limited to 'spec/features/instance_statistics')
-rw-r--r--spec/features/instance_statistics/conversational_development_index_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/features/instance_statistics/conversational_development_index_spec.rb b/spec/features/instance_statistics/conversational_development_index_spec.rb
index d441a7a5af9..a6c16b6a2a3 100644
--- a/spec/features/instance_statistics/conversational_development_index_spec.rb
+++ b/spec/features/instance_statistics/conversational_development_index_spec.rb
@@ -5,6 +5,16 @@ describe 'Conversational Development Index' do
sign_in(create(:admin))
end
+ it 'has dismissable intro callout', :js do
+ visit instance_statistics_conversational_development_index_index_path
+
+ expect(page).to have_content 'Introducing Your Conversational Development Index'
+
+ find('.js-close-callout').click
+
+ expect(page).not_to have_content 'Introducing Your Conversational Development Index'
+ end
+
context 'when usage ping is disabled' do
it 'shows empty state' do
stub_application_setting(usage_ping_enabled: false)