diff --git a/ghost/core/test/e2e-api/members/webhooks.test.js b/ghost/core/test/e2e-api/members/webhooks.test.js index ab3b158e65c..5c0f44f04fe 100644 --- a/ghost/core/test/e2e-api/members/webhooks.test.js +++ b/ghost/core/test/e2e-api/members/webhooks.test.js @@ -176,6 +176,7 @@ describe('Members API', function () { await membersAgent.post('/webhooks/stripe/') .body(webhookPayload) + .header('content-type', 'application/json') .header('stripe-signature', webhookSignature) .expectStatus(200); }); @@ -307,6 +308,7 @@ describe('Members API', function () { await membersAgent.post('/webhooks/stripe/') .body(webhookPayload) + .header('content-type', 'application/json') .header('stripe-signature', webhookSignature) .expectStatus(200); @@ -516,6 +518,7 @@ describe('Members API', function () { await membersAgent.post('/webhooks/stripe/') .body(webhookPayload) + .header('content-type', 'application/json') .header('stripe-signature', webhookSignature) .expectStatus(200); @@ -649,6 +652,7 @@ describe('Members API', function () { await membersAgent.post('/webhooks/stripe/') .body(webhookPayload) + .header('content-type', 'application/json') .header('stripe-signature', webhookSignature); const {body} = await adminAgent.get('/members/?search=checkout-webhook-test@email.com'); @@ -747,6 +751,7 @@ describe('Members API', function () { await membersAgent.post('/webhooks/stripe/') .body(webhookPayload) + .header('content-type', 'application/json') .header('stripe-signature', webhookSignature); const {body} = await adminAgent.get('/members/?search=checkout-newsletter-default-test@email.com'); @@ -795,6 +800,7 @@ describe('Members API', function () { await membersAgent.post('/webhooks/stripe/') .body(webhookPayload) + .header('content-type', 'application/json') .header('stripe-signature', webhookSignature); const {body} = await adminAgent.get('/members/?search=checkout-newsletter-test@email.com'); @@ -865,6 +871,7 @@ describe('Members API', function () { await membersAgent.post('/webhooks/stripe/') .body(webhookPayload) + .header('content-type', 'application/json') .header('stripe-signature', webhookSignature) .expectStatus(200); }); @@ -993,6 +1000,7 @@ describe('Members API', function () { await membersAgent.post('/webhooks/stripe/') .body(webhookPayload) + .header('content-type', 'application/json') .header('stripe-signature', webhookSignature) .expectStatus(200); @@ -1054,6 +1062,7 @@ describe('Members API', function () { await membersAgent.post('/webhooks/stripe/') .body(webhookPayload) + .header('content-type', 'application/json') .header('stripe-signature', webhookSignature) .expectStatus(200); @@ -1390,6 +1399,7 @@ describe('Members API', function () { await membersAgent.post('/webhooks/stripe/') .body(webhookPayload) + .header('content-type', 'application/json') .header('stripe-signature', webhookSignature); const {body} = await adminAgent.get(`/members/?search=${customer_id}@email.com`); @@ -1448,6 +1458,7 @@ describe('Members API', function () { await membersAgent.post('/webhooks/stripe/') .body(webhookPayload) + .header('content-type', 'application/json') .header('stripe-signature', webhookSignature) .expectStatus(200); @@ -1586,6 +1597,7 @@ describe('Members API', function () { await membersAgent.post('/webhooks/stripe/') .body(webhookPayload) + .header('content-type', 'application/json') .header('stripe-signature', webhookSignature); const {body} = await adminAgent.get(`/members/?search=${customer_id}@email.com`); @@ -1749,6 +1761,7 @@ describe('Members API', function () { await membersAgent.post('/webhooks/stripe/') .body(webhookPayload) + .header('content-type', 'application/json') .header('stripe-signature', webhookSignature) .expectStatus(200);