fix ?emailAddressRegEx->?emailAddress in Scenario-test

This commit is contained in:
Michael Hoennig 2024-12-13 13:32:28 +01:00
parent c1c6f8b92d
commit 8f07febcc9

View File

@ -34,7 +34,7 @@ public class SubscribeExistingPersonAndContactToMailinglist extends UseCase<Subs
); );
obtain("Contact: %{subscriberEMailAddress}", () -> obtain("Contact: %{subscriberEMailAddress}", () ->
httpGet("/api/hs/office/contacts?emailAddressRegEx=%{subscriberEMailAddress}") httpGet("/api/hs/office/contacts?emailAddress=%{subscriberEMailAddress}")
.expecting(HttpStatus.OK).expecting(ContentType.JSON), .expecting(HttpStatus.OK).expecting(ContentType.JSON),
response -> response.expectArrayElements(1).getFromBody("[0].uuid"), response -> response.expectArrayElements(1).getFromBody("[0].uuid"),
"In real scenarios there are most likely multiple results and you have to choose the right one." "In real scenarios there are most likely multiple results and you have to choose the right one."