From 514c8917c09471528fe60c4a7184a6bcc97b6c81 Mon Sep 17 00:00:00 2001 From: Simon Backx Date: Wed, 3 May 2023 14:14:10 +0200 Subject: [PATCH] Readded matchMetadataSnapshot refs https://github.com/TryGhost/Ghost/commit/bac2f4d4d42a43a91b56fb0aff6449f4f49214f0#diff-473dc0c49e80df6c07569ed5730445ebdaaa8138fc819182548727db50eb55aa --- .../e2e-api/admin/__snapshots__/newsletters.test.js.snap | 9 +++++++++ ghost/core/test/e2e-api/admin/newsletters.test.js | 1 + 2 files changed, 10 insertions(+) diff --git a/ghost/core/test/e2e-api/admin/__snapshots__/newsletters.test.js.snap b/ghost/core/test/e2e-api/admin/__snapshots__/newsletters.test.js.snap index 767fbe7740..84c947ee14 100644 --- a/ghost/core/test/e2e-api/admin/__snapshots__/newsletters.test.js.snap +++ b/ghost/core/test/e2e-api/admin/__snapshots__/newsletters.test.js.snap @@ -546,6 +546,15 @@ exports[`Newsletters API Can add a newsletter - with custom sender_email and sub " `; +exports[`Newsletters API Can add a newsletter - with custom sender_email and subscribe existing members 3: [metadata 1] 1`] = ` +Object { + "forceTextContent": true, + "from": "noreply@example.com", + "subject": "Verify email address", + "to": "test@example.com", +} +`; + exports[`Newsletters API Can add a newsletter - with custom sender_email and subscribe existing members 4: [html 1] 1`] = ` " diff --git a/ghost/core/test/e2e-api/admin/newsletters.test.js b/ghost/core/test/e2e-api/admin/newsletters.test.js index c7404703ba..09805d67cb 100644 --- a/ghost/core/test/e2e-api/admin/newsletters.test.js +++ b/ghost/core/test/e2e-api/admin/newsletters.test.js @@ -726,6 +726,7 @@ describe('Newsletters API', function () { emailMockReceiver .assertSentEmailCount(1) + .matchMetadataSnapshot() .matchHTMLSnapshot([{ pattern: queryStringToken('verifyEmail'), replacement: 'verifyEmail=REPLACED_TOKEN'