diff --git a/spec/features/proposal_notifications_spec.rb b/spec/features/proposal_notifications_spec.rb index c8aae750e..0db5cd65a 100644 --- a/spec/features/proposal_notifications_spec.rb +++ b/spec/features/proposal_notifications_spec.rb @@ -15,7 +15,9 @@ feature 'Proposal Notifications' do click_link 'Dashboard' end - click_link 'Send notification' + within('#side_menu') do + click_link 'Send notification' + end fill_in 'proposal_notification_title', with: 'Thank you for supporting my proposal' fill_in 'proposal_notification_body', with: 'Please share it with others so we can make it happen!' diff --git a/spec/support/common_actions/notifications.rb b/spec/support/common_actions/notifications.rb index ca98538ee..b09bbe27c 100644 --- a/spec/support/common_actions/notifications.rb +++ b/spec/support/common_actions/notifications.rb @@ -23,7 +23,9 @@ module Notifications click_link "Dashboard" end - click_link "Send notification" + within('#side_menu') do + click_link "Send notification" + end fill_in 'proposal_notification_title', with: "Thanks for supporting proposal: #{proposal.title}" fill_in 'proposal_notification_body', with: "Please share it with others! #{proposal.summary}"