From a2e185c221e0300b61b60fcb557c6b3de2d5549a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Salvador=20P=C3=A9rez=20Garc=C3=ADa?= Date: Thu, 28 Jun 2018 19:05:08 +0200 Subject: [PATCH] Fixed proposal notification specs --- spec/features/proposal_notifications_spec.rb | 4 +++- spec/support/common_actions/notifications.rb | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) 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}"