diff options
author | Rémy Coutable <remy@rymai.me> | 2017-06-26 14:29:35 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-06-26 14:29:35 +0300 |
commit | 739a03a825e5c04c7566bc3bb26314b049e403ec (patch) | |
tree | fd4f93823cbc9242a89f687c631ab23a54f5c94e /spec/features | |
parent | 4503240abdd9a38e801aef49edad9ff9c7f9457d (diff) | |
parent | ece7a3cfdcb0923831bc9ebd7aaf52a9763c1613 (diff) |
Merge branch 'replace_spinach_spec_profile_notifications.feature' into 'master'
Replace 'profile/notifications.feature' spinach test with an rspec analog
See merge request !12345
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/profiles/user_visits_notifications_tab_spec.rb | 21 |
1 files changed, 21 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 new file mode 100644 index 00000000000..e98cec79d87 --- /dev/null +++ b/spec/features/profiles/user_visits_notifications_tab_spec.rb @@ -0,0 +1,21 @@ +require 'spec_helper' + +feature 'User visits the notifications tab', js: true do + let(:project) { create(:empty_project) } + let(:user) { create(:user) } + + before do + project.team << [user, :master] + sign_in(user) + visit(profile_notifications_path) + end + + it 'changes the project notifications setting' do + expect(page).to have_content('Notifications') + + first('#notifications-button').trigger('click') + click_link('On mention') + + expect(page).to have_content('On mention') + end +end |