Merge pull request #2462 from consul/admin-newsletter-emails

Admin newsletter emails
This commit is contained in:
María Checa
2018-02-20 16:17:37 +01:00
committed by GitHub
31 changed files with 791 additions and 39 deletions

View File

@@ -363,4 +363,11 @@ module CommonActions
end
end
def fill_in_newsletter_form(options = {})
fill_in "newsletter_subject", with: (options[:subject] || "This is a different subject")
select (options[:segment_recipient] || 'All users'), from: 'newsletter_segment_recipient'
fill_in "newsletter_from", with: (options[:from] || "no-reply@consul.dev")
fill_in "newsletter_body", with: (options[:body] || "This is a different body")
end
end