Added newsletter specs

This commit is contained in:
María Checa
2018-02-09 17:57:43 +01:00
parent 14ce229c8c
commit e8c797766a
7 changed files with 358 additions and 26 deletions

View File

@@ -357,4 +357,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