From 0a35f372d232a0ac6b9355d27a9fb9e95b1ee959 Mon Sep 17 00:00:00 2001 From: Jose Ivan Vargas Date: Thu, 4 Jan 2018 18:31:05 +0000 Subject: Added multi editor setting on the profile preferences page --- .../profiles/user_visits_profile_preferences_page_spec.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'spec/features/profiles') 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' -- cgit v1.2.3