Aggiunge filtri avanzati per i destinatari delle campagne email.
La scelta della lista passa da un wizard a tre passi, con anteprima del conteggio e lista congelata solo dopo la conferma. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+8
-6
@@ -50,14 +50,16 @@ module MailMarketingTestHelper
|
||||
)
|
||||
end
|
||||
|
||||
def create_campaign_org(name:, email:, ab_variant: nil, send_status: "to_send", list_position: nil)
|
||||
def create_campaign_org(name:, email:, ab_variant: nil, send_status: "to_send", list_position: nil, **org_attrs)
|
||||
project = projects(:matchlivetv)
|
||||
org = Organization.new(
|
||||
name: name,
|
||||
status: "prospect",
|
||||
organization_type: "societa_sportiva",
|
||||
email: email,
|
||||
list_position: list_position
|
||||
{
|
||||
name: name,
|
||||
status: "prospect",
|
||||
organization_type: "societa_sportiva",
|
||||
email: email,
|
||||
list_position: list_position
|
||||
}.merge(org_attrs)
|
||||
)
|
||||
org.organization_projects.build(project: project)
|
||||
org.save!
|
||||
|
||||
Reference in New Issue
Block a user