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:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-01-07 06:14:36 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-01-07 06:14:36 +0300
commitb2eab0d28d1c3c156dfbed96370ffb64bcfaab6a (patch)
tree4fb0dd5aa9af1b567d57f832250ac87b72133f71 /spec/features/groups_spec.rb
parentca0e7e6570b2b1b3afb04179395d043dc26da3c6 (diff)
Add latest changes from gitlab-org/gitlab@master
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