summaryrefslogtreecommitdiff
path: root/spec/features/profiles/user_changes_notified_of_own_activity_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/profiles/user_changes_notified_of_own_activity_spec.rb')
-rw-r--r--spec/features/profiles/user_changes_notified_of_own_activity_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/features/profiles/user_changes_notified_of_own_activity_spec.rb b/spec/features/profiles/user_changes_notified_of_own_activity_spec.rb
index 0709f32bf0c..e05fbb3715c 100644
--- a/spec/features/profiles/user_changes_notified_of_own_activity_spec.rb
+++ b/spec/features/profiles/user_changes_notified_of_own_activity_spec.rb
@@ -12,7 +12,7 @@ feature 'Profile > Notifications > User changes notified_of_own_activity setting
expect(page).not_to have_checked_field('user[notified_of_own_activity]')
- page.find('#user_notified_of_own_activity').set(true)
+ check 'user[notified_of_own_activity]'
expect(page).to have_content('Notification settings saved')
expect(page).to have_checked_field('user[notified_of_own_activity]')
@@ -24,7 +24,7 @@ feature 'Profile > Notifications > User changes notified_of_own_activity setting
expect(page).to have_checked_field('user[notified_of_own_activity]')
- page.find('#user_notified_of_own_activity').set(false)
+ uncheck 'user[notified_of_own_activity]'
expect(page).to have_content('Notification settings saved')
expect(page).not_to have_checked_field('user[notified_of_own_activity]')