diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-28 18:09:29 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-28 18:09:29 +0300 |
commit | 37ae6b54ba524c438d1b756ce3ca29bbcec4e897 (patch) | |
tree | e0cd3b9a5f19daec493de537d3214ac390101462 /spec/features | |
parent | c74b7b5e4345702a1d59c72d923c3580ef157a59 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/admin/admin_appearance_spec.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/features/admin/admin_appearance_spec.rb b/spec/features/admin/admin_appearance_spec.rb index f6c498f7a4c..e711ee7d40e 100644 --- a/spec/features/admin/admin_appearance_spec.rb +++ b/spec/features/admin/admin_appearance_spec.rb @@ -12,6 +12,7 @@ describe 'Admin Appearance' do fill_in 'appearance_title', with: 'MyCompany' fill_in 'appearance_description', with: 'dev server' fill_in 'appearance_new_project_guidelines', with: 'Custom project guidelines' + fill_in 'appearance_profile_image_guidelines', with: 'Custom profile image guidelines' click_button 'Update appearance settings' expect(current_path).to eq admin_appearances_path @@ -20,6 +21,7 @@ describe 'Admin Appearance' do expect(page).to have_field('appearance_title', with: 'MyCompany') expect(page).to have_field('appearance_description', with: 'dev server') expect(page).to have_field('appearance_new_project_guidelines', with: 'Custom project guidelines') + expect(page).to have_field('appearance_profile_image_guidelines', with: 'Custom profile image guidelines') expect(page).to have_content 'Last edit' end @@ -86,6 +88,22 @@ describe 'Admin Appearance' do expect_custom_new_project_appearance(appearance) end + context 'Profile page with custom profile image guidelines' do + before do + sign_in(create(:admin)) + visit admin_appearances_path + fill_in 'appearance_profile_image_guidelines', with: 'Custom profile image guidelines, please :smile:!' + click_button 'Update appearance settings' + end + + it 'renders guidelines when set' do + sign_in create(:user) + visit profile_path + + expect(page).to have_content 'Custom profile image guidelines, please 😄!' + end + end + it 'Appearance logo' do sign_in(create(:admin)) visit admin_appearances_path |