Fixed proposal notification specs

This commit is contained in:
Juan Salvador Pérez García
2018-06-28 19:05:08 +02:00
parent 084e9855e4
commit a2e185c221
2 changed files with 6 additions and 2 deletions

View File

@@ -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!'

View File

@@ -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}"