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:
authorJose Ivan Vargas <jvargas@gitlab.com>2018-01-04 21:31:05 +0300
committerTim Zallmann <tzallmann@gitlab.com>2018-01-04 21:31:05 +0300
commit0a35f372d232a0ac6b9355d27a9fb9e95b1ee959 (patch)
tree5db2e9918049e57ec8f1e8d1a574977160eb92f3 /spec/features/profiles
parent54bbcc3df962b46d565bc0274e2932c7a718fdc6 (diff)
Added multi editor setting on the profile preferences page
Diffstat (limited to 'spec/features/profiles')
-rw-r--r--spec/features/profiles/user_visits_profile_preferences_page_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/features/profiles/user_visits_profile_preferences_page_spec.rb b/spec/features/profiles/user_visits_profile_preferences_page_spec.rb
index 90d6841af0e..266af8f4e3d 100644
--- a/spec/features/profiles/user_visits_profile_preferences_page_spec.rb
+++ b/spec/features/profiles/user_visits_profile_preferences_page_spec.rb
@@ -32,6 +32,18 @@ describe 'User visits the profile preferences page' do
end
end
+ describe 'User changes their multi file editor preferences', :js do
+ it 'set the new_repo cookie when the option is ON' do
+ choose 'user_multi_file_on'
+ expect(get_cookie('new_repo')).not_to be_nil
+ end
+
+ it 'deletes the new_repo cookie when the option is OFF' do
+ choose 'user_multi_file_off'
+ expect(get_cookie('new_repo')).to be_nil
+ end
+ end
+
describe 'User changes their default dashboard', :js do
it 'creates a flash message' do
select 'Starred Projects', from: 'user_dashboard'