create relation with holder- and contact-data, and search for contact emailAddress + relation mark #136
@ -34,7 +34,7 @@ public class SubscribeExistingPersonAndContactToMailinglist extends UseCase<Subs
|
||||
);
|
||||
|
||||
obtain("Contact: %{subscriberEMailAddress}", () ->
|
||||
httpGet("/api/hs/office/contacts?emailAddressRegEx=%{subscriberEMailAddress}")
|
||||
httpGet("/api/hs/office/contacts?emailAddress=%{subscriberEMailAddress}")
|
||||
.expecting(HttpStatus.OK).expecting(ContentType.JSON),
|
||||
response -> response.expectArrayElements(1).getFromBody("[0].uuid"),
|
||||
"In real scenarios there are most likely multiple results and you have to choose the right one."
|
||||
|
Loading…
Reference in New Issue
Block a user