diff options
author | Illya Klymov <xanf@xanf.me> | 2019-04-19 16:02:35 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-04-19 16:02:35 +0300 |
commit | 6ea92ef1a01929e8a311e2eb56d2b298bc4db1a8 (patch) | |
tree | facec66dc894043840f595f9881d7251a303e1db /spec/features/projects/show | |
parent | 48b025d188420b46bfd0df79f5c1f1bdde65c138 (diff) |
Improvements to Project overview UI
Diffstat (limited to 'spec/features/projects/show')
-rw-r--r-- | spec/features/projects/show/user_manages_notifications_spec.rb | 10 |
1 files changed, 10 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 index 88f3397608f..e9dd1dc0f66 100644 --- a/spec/features/projects/show/user_manages_notifications_spec.rb +++ b/spec/features/projects/show/user_manages_notifications_spec.rb @@ -20,6 +20,16 @@ describe 'Projects > Show > User manages notifications', :js do click_notifications_button expect(find('.update-notification.is-active')).to have_content('On mention') + expect(find('.notifications-icon use')[:'xlink:href']).to end_with('#notifications') + end + + it 'changes the notification setting to disabled' do + click_notifications_button + click_link 'Disabled' + + wait_for_requests + + expect(find('.notifications-icon use')[:'xlink:href']).to end_with('#notifications-off') end context 'custom notification settings' do |