From fd69ab181d8b9b2510052592f6c98814a08da400 Mon Sep 17 00:00:00 2001 From: Simon Backx Date: Wed, 3 May 2023 14:13:04 +0200 Subject: [PATCH] Removed duplicate matchHTMLSnapshot --- .../__snapshots__/newsletters.test.js.snap | 21 +++++++++++++++++-- .../test/e2e-api/admin/newsletters.test.js | 1 - 2 files changed, 19 insertions(+), 3 deletions(-) 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 599f55d552..767fbe7740 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 @@ -497,7 +497,7 @@ exports[`Newsletters API Can add a newsletter - with custom sender_email and sub - +
Confirm email address Confirm email address
@@ -508,7 +508,7 @@ exports[`Newsletters API Can add a newsletter - with custom sender_email and sub

For your security, the link will expire in 24 hours time.


You can also copy & paste this URL into your browser:

-

http://127.0.0.1:2369/ghost/#/settings/newsletters/?verifyEmail=9f3o0M5oO6Drr69T7Jd84D73-UKmWSD0

+

http://127.0.0.1:2369/ghost/#/settings/newsletters/?verifyEmail=REPLACED_TOKEN

@@ -715,6 +715,23 @@ 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 4: [text 1] 1`] = ` +" + Hey there, + + Please confirm your email address with this link: + + http://127.0.0.1:2369/ghost/#/settings/newsletters/?verifyEmail=REPLACED_TOKEN + + For your security, the link will expire in 24 hours time. + + --- + + Sent to test@example.com + If you did not make this request, you can simply delete this message. This email address will not be used. + " +`; + exports[`Newsletters API Can add a newsletter - with custom sender_email and subscribe existing members 5: [text 1] 1`] = ` " Hey there, diff --git a/ghost/core/test/e2e-api/admin/newsletters.test.js b/ghost/core/test/e2e-api/admin/newsletters.test.js index 0fc23664ed..c7404703ba 100644 --- a/ghost/core/test/e2e-api/admin/newsletters.test.js +++ b/ghost/core/test/e2e-api/admin/newsletters.test.js @@ -726,7 +726,6 @@ describe('Newsletters API', function () { emailMockReceiver .assertSentEmailCount(1) - .matchHTMLSnapshot() .matchHTMLSnapshot([{ pattern: queryStringToken('verifyEmail'), replacement: 'verifyEmail=REPLACED_TOKEN'