diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-20 12:16:11 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-20 12:16:11 +0300 |
commit | edaa33dee2ff2f7ea3fac488d41558eb5f86d68c (patch) | |
tree | 11f143effbfeba52329fb7afbd05e6e2a3790241 /spec/features/groups_spec.rb | |
parent | d8a5691316400a0f7ec4f83832698f1988eb27c1 (diff) |
Add latest changes from gitlab-org/gitlab@14-7-stable-eev14.7.0-rc42
Diffstat (limited to 'spec/features/groups_spec.rb')
-rw-r--r-- | spec/features/groups_spec.rb | 22 |
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 |