Fix tests after replacing message with notification

Looks like our test suite wasn't executed in commit 4dbc027e5, and so we
weren't notified of these failures.
This commit is contained in:
Javi Martín
2021-08-17 14:15:56 +02:00
committed by Javi Martín
parent 9c8ee576a2
commit d5d9eb5093
3 changed files with 13 additions and 13 deletions

View File

@@ -360,13 +360,13 @@ describe "Proposal's dashboard" do
expect(page).to have_link("See previous notifications")
end
scenario "Dashboard has a link to send message to proposal supporters" do
scenario "Dashboard has a link to send notification to proposal supporters" do
visit messages_proposal_dashboard_path(proposal)
click_link("Send notification to proposal followers")
fill_in "Title", with: "Thank you for supporting my proposal"
fill_in "Message", with: "Please share it with others!"
click_button "Send message"
click_button "Send notification"
expect(page).to have_content "Your message has been sent correctly."
expect(page).to have_content "Thank you for supporting my proposal"