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:
authorBrett Walker <bwalker@gitlab.com>2019-08-17 08:56:48 +0300
committerPaul Slaughter <pslaughter@gitlab.com>2019-08-17 08:56:48 +0300
commit9be16e1f495655e68bc980fced9a8075223ccccf (patch)
treec3ac8db7b555e7b4aef5d1d9f12eb08ad17dd5dd /spec/features/profiles
parent9eabc0d6fc268023db13e8dad315f99f4fe1a6da (diff)
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
Diffstat (limited to 'spec/features/profiles')
-rw-r--r--spec/features/profiles/user_visits_notifications_tab_spec.rb8
1 files changed, 8 insertions, 0 deletions
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