summaryrefslogtreecommitdiff
path: root/spec/features/groups_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/groups_spec.rb')
-rw-r--r--spec/features/groups_spec.rb22
1 files changed, 22 insertions, 0 deletions
diff --git a/spec/features/groups_spec.rb b/spec/features/groups_spec.rb
index 9c11b84fa8f..19f60ce55d3 100644
--- a/spec/features/groups_spec.rb
+++ b/spec/features/groups_spec.rb
@@ -171,6 +171,28 @@ RSpec.describe 'Group' do
expect(page).not_to have_css('.recaptcha')
end
end
+
+ describe 'showing personalization questions on group creation when it is enabled' do
+ before do
+ stub_application_setting(hide_third_party_offers: false)
+ visit new_group_path(anchor: 'create-group-pane')
+ end
+
+ it 'renders personalization questions' do
+ expect(page).to have_content('Now, personalize your GitLab experience')
+ end
+ end
+
+ describe 'not showing personalization questions on group creation when it is enabled' do
+ before do
+ stub_application_setting(hide_third_party_offers: true)
+ visit new_group_path(anchor: 'create-group-pane')
+ end
+
+ it 'does not render personalization questions' do
+ expect(page).not_to have_content('Now, personalize your GitLab experience')
+ end
+ end
end
describe 'create a nested group', :js do