From 9be16e1f495655e68bc980fced9a8075223ccccf Mon Sep 17 00:00:00 2001 From: Brett Walker Date: Sat, 17 Aug 2019 05:56:48 +0000 Subject: UI for disabling group/project email notification - Adds UI to configure in group and project settings - Removes notification configuration for users when disabled at group or project level --- spec/features/profiles/user_visits_notifications_tab_spec.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'spec/features/profiles') diff --git a/spec/features/profiles/user_visits_notifications_tab_spec.rb b/spec/features/profiles/user_visits_notifications_tab_spec.rb index 1472cc882a7..d788c0574e2 100644 --- a/spec/features/profiles/user_visits_notifications_tab_spec.rb +++ b/spec/features/profiles/user_visits_notifications_tab_spec.rb @@ -20,4 +20,12 @@ describe 'User visits the notifications tab', :js do expect(page).to have_selector('#notifications-button', text: 'On mention') end + + context 'when project emails are disabled' do + let(:project) { create(:project, emails_disabled: true) } + + it 'notification button is disabled' do + expect(page).to have_selector('.notifications-btn.disabled', visible: true) + end + end end -- cgit v1.2.3