diff options
author | Jose Ivan Vargas <jvargas@gitlab.com> | 2018-01-04 18:31:05 +0000 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2018-01-04 18:31:05 +0000 |
commit | 0a35f372d232a0ac6b9355d27a9fb9e95b1ee959 (patch) | |
tree | 5db2e9918049e57ec8f1e8d1a574977160eb92f3 /spec/features/profiles | |
parent | 54bbcc3df962b46d565bc0274e2932c7a718fdc6 (diff) | |
download | gitlab-ce-0a35f372d232a0ac6b9355d27a9fb9e95b1ee959.tar.gz |
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.rb | 12 |
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' |