You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a Crank user, I should be able to check that a Pardot Prospect is a member of a list and whether or not the Prospect is opted out.
Proposed Step Name: Check Pardot List Membership Proposed Step Expression: the (?<email>.+) pardot prospect should (?<optInOut>(be opted in to|be opted out of|not be a member of)) list (?<listId>.+)
Proposed Step Fields:
email (type EMAIL), the email address of the prospect
optInOut (type STRING), one of be opted in to, be opted out of, or not be a member of
listId (type NUMERIC), the ID of the pardot list
Proposed Step Records
listMembership (type KeyValue, named List Membership), returned regardless of outcome anytime a ListMembership record is found. Guaranteed fields should include:
id (type NUMERIC)
list_id (type NUMERIC)
prospect_id (type NUMERIC)
opted_out (type BOOLEAN)
created_at (type DATETIME)
updated_at (type DATETIME)
Proposed Resolution
Load the prospect for the given email address and note its ID.
If no ListMembership is found, the step should fail: Prospect %s is not a member of list %d.
The step should pass if a ListMembership is found and opted_out field is false-y (e.g. not set or false or 0)
If the opted_out property is truth-y, the step should fail: Expected prospect %s to be opted in to list %d, but the prospect is opted out.
When optInOut is set to be opted out of
If no ListMembership is found, the step should fail: Prospect %s is not a member of list %d.
The step should pass if a ListMembership is found and opted_out is truth-y (e.g. set to 1).
If the opted_out property is false-y, the step should fail: Expected prospect %s to be opted out of list %d, but the prospect is opted in.
When the optInOut is set to not be a member of
If no ListMembership is found, the step should pass.
If a ListMemberShip is found, regardless of its opted_out property, the step should fail: Expected prospect %s to not be a member of list %d, but a list membership was found.
In any case, if there is no prospect for the given email address, the step should result in an error: No prospect found for email %s
The text was updated successfully, but these errors were encountered:
scenario: Static List Membershipdescription: Proves list membership check works for static liststokens:
test.email: [email protected]steps:
- step: Given I navigate to http://go.pardot.com/l/811013/2019-10-16/3mxyx
- step: And I fill out .qat-email-address input with {{test.email}}
- step: And I submit the form by clicking input[type="submit"]
- step: When I navigate to http://go.pardot.com/emailPreference/e/epc/811013/73l8a8WE9ADUxfXqsuccHNdSbUtyYnSPsF84xjhVW0g/411
- step: And I fill out input#list_20395 with 1
- step: And I submit the form by clicking input[type="submit"]
- step: Then the {{test.email}} Pardot Prospect should be opted in to list 20395
- step: Finally, delete the {{test.email}} Pardot Prospect
scenario: Dynamic List Membershipdescription: Proves list membership check works for dynamic liststokens:
test.email: [email protected]steps:
- step: Given I create a Pardot Prospectdata:
prospect:
email: '{{test.email}}'utm_campaign: DynamicSubscribe
- step: Then the {{test.email}} Pardot Prospect should be opted in to list 20397
- step: Finally, delete the {{test.email}} Pardot Prospect
What / Why
As a Crank user, I should be able to check that a Pardot Prospect is a member of a list and whether or not the Prospect is opted out.
Proposed Step Name: Check Pardot List Membership
Proposed Step Expression:
the (?<email>.+) pardot prospect should (?<optInOut>(be opted in to|be opted out of|not be a member of)) list (?<listId>.+)
Proposed Step Fields:
email
(typeEMAIL
), the email address of the prospectoptInOut
(typeSTRING
), one ofbe opted in to
,be opted out of
, ornot be a member of
listId
(typeNUMERIC
), the ID of the pardot listProposed Step Records
listMembership
(typeKeyValue
, namedList Membership
), returned regardless of outcome anytime a ListMembership record is found. Guaranteed fields should include:id
(typeNUMERIC
)list_id
(typeNUMERIC
)prospect_id
(typeNUMERIC
)opted_out
(typeBOOLEAN
)created_at
(typeDATETIME
)updated_at
(typeDATETIME
)Proposed Resolution
listId
andprospectId
Outcomes
optInOut
is set tobe opted in to
Prospect %s is not a member of list %d.
opted_out
field is false-y (e.g. not set orfalse
or0
)opted_out
property is truth-y, the step should fail:Expected prospect %s to be opted in to list %d, but the prospect is opted out.
optInOut
is set tobe opted out of
Prospect %s is not a member of list %d.
opted_out
is truth-y (e.g. set to1
).opted_out
property is false-y, the step should fail:Expected prospect %s to be opted out of list %d, but the prospect is opted in.
optInOut
is set tonot be a member of
opted_out
property, the step should fail:Expected prospect %s to not be a member of list %d, but a list membership was found.
No prospect found for email %s
The text was updated successfully, but these errors were encountered: