Skip to content

Commit 03168bf

Browse files
committed
Try to make PayPro profitwell test a less flaky
1 parent 697e351 commit 03168bf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

api/test/paypro-webhook.spec.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ describe('PayPro webhooks', () => {
389389

390390
it('should log subscriptions in Profitwell', async () => {
391391
const userId = "abc";
392-
const userEmail = '[email protected]';
392+
const userEmail = 'profitwell-test-[email protected]';
393393
givenUser(userId, userEmail);
394394

395395
await auth0Server
@@ -404,6 +404,7 @@ describe('PayPro webhooks', () => {
404404

405405
const profitwellSubscriptionTraits = await profitwellApiServer
406406
.forPut('/v2/customer_traits/trait/')
407+
.withJsonBodyIncluding({ email: userEmail })
407408
.thenReply(200);
408409

409410
const profitwellSubscriptionDeletion = await profitwellApiServer
@@ -431,7 +432,7 @@ describe('PayPro webhooks', () => {
431432
ORDER_CUSTOM_FIELDS: 'x-passthrough={"country":"ABC"}'
432433
});
433434

434-
givenUser(userId, userEmail, {
435+
await givenUser(userId, userEmail, {
435436
subscription_expiry: nextRenewal.valueOf()
436437
});
437438

0 commit comments

Comments
 (0)