summaryrefslogtreecommitdiff
path: root/spec/features/projects/show/user_manages_notifications_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/projects/show/user_manages_notifications_spec.rb')
-rw-r--r--spec/features/projects/show/user_manages_notifications_spec.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/spec/features/projects/show/user_manages_notifications_spec.rb b/spec/features/projects/show/user_manages_notifications_spec.rb
new file mode 100644
index 00000000000..31b105229be
--- /dev/null
+++ b/spec/features/projects/show/user_manages_notifications_spec.rb
@@ -0,0 +1,19 @@
+require 'spec_helper'
+
+describe 'Projects > Show > User manages notifications', :js do
+ let(:project) { create(:project, :public, :repository) }
+
+ before do
+ sign_in(project.owner)
+ visit project_path(project)
+ end
+
+ it 'changes the notification setting' do
+ first('.notifications-btn').click
+ click_link 'On mention'
+
+ page.within '#notifications-button' do
+ expect(page).to have_content 'On mention'
+ end
+ end
+end