Skip to content
Snippets Groups Projects
Commit 4647d138 authored by Richard Macklin's avatar Richard Macklin
Browse files

Use check and uncheck methods from Capybara DSL

in user_changes_notified_of_own_activity_spec
parent 946efd9f
No related branches found
No related tags found
1 merge request!8836Add option to receive email notifications about your own activity
Loading
@@ -12,7 +12,7 @@ feature 'Profile > Notifications > User changes notified_of_own_activity setting
Loading
@@ -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]') 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_content('Notification settings saved')
expect(page).to have_checked_field('user[notified_of_own_activity]') expect(page).to have_checked_field('user[notified_of_own_activity]')
Loading
@@ -24,7 +24,7 @@ feature 'Profile > Notifications > User changes notified_of_own_activity setting
Loading
@@ -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]') 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).to have_content('Notification settings saved')
expect(page).not_to have_checked_field('user[notified_of_own_activity]') expect(page).not_to have_checked_field('user[notified_of_own_activity]')
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment