Added newsletter specs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user