Skip to content

Commit 53dcc55

Browse files
committed
Updated e2e snapshots for comments default (#27653)
ref #27653 Comments are now enabled by default for new sites, so default email previews, settings responses, and Content API responses changed. Updating these snapshots keeps the acceptance suite aligned with the new default.
1 parent 44d67fc commit 53dcc55

5 files changed

Lines changed: 282 additions & 112 deletions

File tree

ghost/core/test/e2e-api/admin/__snapshots__/email-previews.test.js.snap

Lines changed: 175 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -770,6 +770,20 @@ table.body h2 span {
770770
771771
<!-- END MAIN CONTENT AREA -->
772772
773+
<tr>
774+
<td class=\\"feedback-buttons-container\\" dir=\\"ltr\\" width=\\"100%\\" align=\\"center\\" style=\\"font-family: -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif; font-size: 18px; vertical-align: top; color: #15212A; padding: 32px 0 24px; border-bottom: 1px solid #e0e7eb; text-align: center; background-color: #ffffff;\\" valign=\\"top\\" bgcolor=\\"#ffffff\\">
775+
<table class=\\"feedback-buttons\\" role=\\"presentation\\" border=\\"0\\" cellpadding=\\"0\\" cellspacing=\\"0\\" style=\\"border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; margin: auto; width: 100%;\\" width=\\"100%\\">
776+
<tr>
777+
<td dir=\\"ltr\\" valign=\\"top\\" align=\\"center\\" style=\\"font-size: 18px; color: #15212A; display: inline-block; box-sizing: border-box; vertical-align: top; font-family: inherit; text-align: center; padding: 0 4px 4px; cursor: pointer; width: 100%;\\" width=\\"100%\\">
778+
<a href=\\"http://127.0.0.1:2369/p/d52c42ae-2755-455c-80ec-70b2ec55c904/#ghost-comments-root\\" target=\\"_blank\\" style=\\"color: #FF1A75; text-decoration: none; overflow-wrap: anywhere;\\">
779+
<img src=\\"https://static.ghost.org/v5.0.0/images/comment-mobile.png\\" border=\\"0\\" width=\\"42\\" height=\\"42\\" alt=\\"Comment\\" style=\\"border: none; -ms-interpolation-mode: bicubic; max-width: 100%; display: block; margin: 0 auto; vertical-align: middle;\\">
780+
<p class=\\"feedback-button-text\\" style=\\"display: inline-block; font-family: -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif; color: #15212A; font-weight: 500; margin: 1em 0 0 0; line-height: 1.4; word-break: break-word; font-size: 13px;\\">Comment</p>
781+
</a>
782+
</td>
783+
</tr>
784+
</table>
785+
</td>
786+
</tr>
773787
774788
775789
@@ -960,6 +974,26 @@ Another email card with a similar replacement, Jamie
960974
961975
962976
977+
978+
979+
Comment
980+
981+
982+
[http://127.0.0.1:2369/p/d52c42ae-2755-455c-80ec-70b2ec55c904/#ghost-comments-root]
983+
984+
985+
986+
987+
988+
989+
990+
991+
992+
993+
994+
995+
996+
963997
Ghost © 2025Unsubscribe [http://127.0.0.1:2369/unsubscribe/?uuid=example-uuid&key=803e513e2d8b88e759d8f433779659af335d7308b4cbac809600d563f6b49a76&newsletter=requested-newsletter-uuid]
964998
965999
@@ -988,7 +1022,7 @@ exports[`Email Preview API Read can read post email preview with email card and
9881022
Object {
9891023
"access-control-allow-origin": "http://127.0.0.1:2369",
9901024
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
991-
"content-length": "35639",
1025+
"content-length": "38065",
9921026
"content-type": "application/json; charset=utf-8",
9931027
"content-version": StringMatching /v\\\\d\\+\\\\\\.\\\\d\\+/,
9941028
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
@@ -1677,6 +1711,20 @@ table.body h2 span {
16771711
16781712
<!-- END MAIN CONTENT AREA -->
16791713
1714+
<tr>
1715+
<td class=\\"feedback-buttons-container\\" dir=\\"ltr\\" width=\\"100%\\" align=\\"center\\" style=\\"font-family: -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif; font-size: 18px; vertical-align: top; color: #15212A; padding: 32px 0 24px; border-bottom: 1px solid #e0e7eb; text-align: center; background-color: #ffffff;\\" valign=\\"top\\" bgcolor=\\"#ffffff\\">
1716+
<table class=\\"feedback-buttons\\" role=\\"presentation\\" border=\\"0\\" cellpadding=\\"0\\" cellspacing=\\"0\\" style=\\"border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; margin: auto; width: 100%;\\" width=\\"100%\\">
1717+
<tr>
1718+
<td dir=\\"ltr\\" valign=\\"top\\" align=\\"center\\" style=\\"font-size: 18px; color: #15212A; display: inline-block; box-sizing: border-box; vertical-align: top; font-family: inherit; text-align: center; padding: 0 4px 4px; cursor: pointer; width: 100%;\\" width=\\"100%\\">
1719+
<a href=\\"http://127.0.0.1:2369/html-ipsum/#ghost-comments-root\\" target=\\"_blank\\" style=\\"color: #FF1A75; text-decoration: none; overflow-wrap: anywhere;\\">
1720+
<img src=\\"https://static.ghost.org/v5.0.0/images/comment-mobile.png\\" border=\\"0\\" width=\\"42\\" height=\\"42\\" alt=\\"Comment\\" style=\\"border: none; -ms-interpolation-mode: bicubic; max-width: 100%; display: block; margin: 0 auto; vertical-align: middle;\\">
1721+
<p class=\\"feedback-button-text\\" style=\\"display: inline-block; font-family: -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif; color: #15212A; font-weight: 500; margin: 1em 0 0 0; line-height: 1.4; word-break: break-word; font-size: 13px;\\">Comment</p>
1722+
</a>
1723+
</td>
1724+
</tr>
1725+
</table>
1726+
</td>
1727+
</tr>
16801728
16811729
16821730
@@ -1884,6 +1932,26 @@ Header Level 3
18841932
18851933
18861934
1935+
1936+
1937+
Comment
1938+
1939+
1940+
[http://127.0.0.1:2369/html-ipsum/#ghost-comments-root]
1941+
1942+
1943+
1944+
1945+
1946+
1947+
1948+
1949+
1950+
1951+
1952+
1953+
1954+
18871955
Ghost © 2025Unsubscribe [http://127.0.0.1:2369/unsubscribe/?uuid=example-uuid&key=803e513e2d8b88e759d8f433779659af335d7308b4cbac809600d563f6b49a76&newsletter=requested-newsletter-uuid]
18881956
18891957
@@ -1912,7 +1980,7 @@ exports[`Email Preview API Read can read post email preview with fields 4: [head
19121980
Object {
19131981
"access-control-allow-origin": "http://127.0.0.1:2369",
19141982
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
1915-
"content-length": "40073",
1983+
"content-length": "42443",
19161984
"content-type": "application/json; charset=utf-8",
19171985
"content-version": StringMatching /v\\\\d\\+\\\\\\.\\\\d\\+/,
19181986
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
@@ -2627,6 +2695,20 @@ table.body h2 span {
26272695
26282696
<!-- END MAIN CONTENT AREA -->
26292697
2698+
<tr>
2699+
<td class=\\"feedback-buttons-container\\" dir=\\"ltr\\" width=\\"100%\\" align=\\"center\\" style=\\"font-family: -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif; font-size: 18px; vertical-align: top; color: #15212A; padding: 32px 0 24px; border-bottom: 1px solid #e0e7eb; text-align: center; background-color: #ffffff;\\" valign=\\"top\\" bgcolor=\\"#ffffff\\">
2700+
<table class=\\"feedback-buttons\\" role=\\"presentation\\" border=\\"0\\" cellpadding=\\"0\\" cellspacing=\\"0\\" style=\\"border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; margin: auto; width: 100%;\\" width=\\"100%\\">
2701+
<tr>
2702+
<td dir=\\"ltr\\" valign=\\"top\\" align=\\"center\\" style=\\"font-size: 18px; color: #15212A; display: inline-block; box-sizing: border-box; vertical-align: top; font-family: inherit; text-align: center; padding: 0 4px 4px; cursor: pointer; width: 100%;\\" width=\\"100%\\">
2703+
<a href=\\"http://127.0.0.1:2369/p/d52c42ae-2755-455c-80ec-70b2ec55c904/#ghost-comments-root\\" target=\\"_blank\\" style=\\"color: #FF1A75; text-decoration: none; overflow-wrap: anywhere;\\">
2704+
<img src=\\"https://static.ghost.org/v5.0.0/images/comment-mobile.png\\" border=\\"0\\" width=\\"42\\" height=\\"42\\" alt=\\"Comment\\" style=\\"border: none; -ms-interpolation-mode: bicubic; max-width: 100%; display: block; margin: 0 auto; vertical-align: middle;\\">
2705+
<p class=\\"feedback-button-text\\" style=\\"display: inline-block; font-family: -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif; color: #15212A; font-weight: 500; margin: 1em 0 0 0; line-height: 1.4; word-break: break-word; font-size: 13px;\\">Comment</p>
2706+
</a>
2707+
</td>
2708+
</tr>
2709+
</table>
2710+
</td>
2711+
</tr>
26302712
26312713
26322714
@@ -2811,6 +2893,26 @@ Testing links [https://ghost.org/] in email excerpt and apostrophes '
28112893
28122894
28132895
2896+
2897+
2898+
Comment
2899+
2900+
2901+
[http://127.0.0.1:2369/p/d52c42ae-2755-455c-80ec-70b2ec55c904/#ghost-comments-root]
2902+
2903+
2904+
2905+
2906+
2907+
2908+
2909+
2910+
2911+
2912+
2913+
2914+
2915+
28142916
Ghost © 2025Unsubscribe [http://127.0.0.1:2369/unsubscribe/?uuid=example-uuid&key=803e513e2d8b88e759d8f433779659af335d7308b4cbac809600d563f6b49a76&newsletter=requested-newsletter-uuid]
28152917
28162918
@@ -2852,7 +2954,7 @@ exports[`Email Preview API Read has custom content transformations for email com
28522954
Object {
28532955
"access-control-allow-origin": "http://127.0.0.1:2369",
28542956
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
2855-
"content-length": "35351",
2957+
"content-length": "37777",
28562958
"content-type": "application/json; charset=utf-8",
28572959
"content-version": StringMatching /v\\\\d\\+\\\\\\.\\\\d\\+/,
28582960
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
@@ -3903,6 +4005,20 @@ table.body h2 span {
39034005
39044006
<!-- END MAIN CONTENT AREA -->
39054007
4008+
<tr>
4009+
<td class=\\"feedback-buttons-container\\" dir=\\"ltr\\" width=\\"100%\\" align=\\"center\\" style=\\"font-family: -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif; font-size: 18px; vertical-align: top; color: #15212A; padding: 32px 0 24px; border-bottom: 1px solid #e0e7eb; text-align: center; background-color: #ffffff;\\" valign=\\"top\\" bgcolor=\\"#ffffff\\">
4010+
<table class=\\"feedback-buttons\\" role=\\"presentation\\" border=\\"0\\" cellpadding=\\"0\\" cellspacing=\\"0\\" style=\\"border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; margin: auto; width: 100%;\\" width=\\"100%\\">
4011+
<tr>
4012+
<td dir=\\"ltr\\" valign=\\"top\\" align=\\"center\\" style=\\"font-size: 18px; color: #15212A; display: inline-block; box-sizing: border-box; vertical-align: top; font-family: inherit; text-align: center; padding: 0 4px 4px; cursor: pointer; width: 100%;\\" width=\\"100%\\">
4013+
<a href=\\"http://127.0.0.1:2369/p/d52c42ae-2755-455c-80ec-70b2ec55c904/#ghost-comments-root\\" target=\\"_blank\\" style=\\"color: #FF1A75; text-decoration: none; overflow-wrap: anywhere;\\">
4014+
<img src=\\"https://static.ghost.org/v5.0.0/images/comment-mobile.png\\" border=\\"0\\" width=\\"42\\" height=\\"42\\" alt=\\"Comment\\" style=\\"border: none; -ms-interpolation-mode: bicubic; max-width: 100%; display: block; margin: 0 auto; vertical-align: middle;\\">
4015+
<p class=\\"feedback-button-text\\" style=\\"display: inline-block; font-family: -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif; color: #15212A; font-weight: 500; margin: 1em 0 0 0; line-height: 1.4; word-break: break-word; font-size: 13px;\\">Comment</p>
4016+
</a>
4017+
</td>
4018+
</tr>
4019+
</table>
4020+
</td>
4021+
</tr>
39064022
39074023
39084024
@@ -4094,6 +4210,26 @@ Testing links [https://ghost.org/] in email excerpt and apostrophes '
40944210
40954211
40964212
4213+
4214+
4215+
Comment
4216+
4217+
4218+
[http://127.0.0.1:2369/p/d52c42ae-2755-455c-80ec-70b2ec55c904/#ghost-comments-root]
4219+
4220+
4221+
4222+
4223+
4224+
4225+
4226+
4227+
4228+
4229+
4230+
4231+
4232+
40974233
Ghost © 2025Unsubscribe [http://127.0.0.1:2369/unsubscribe/?uuid=example-uuid&key=803e513e2d8b88e759d8f433779659af335d7308b4cbac809600d563f6b49a76&newsletter=requested-newsletter-uuid]
40984234
40994235
@@ -4135,7 +4271,7 @@ exports[`Email Preview API Read uses the newsletter provided through ?newsletter
41354271
Object {
41364272
"access-control-allow-origin": "http://127.0.0.1:2369",
41374273
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
4138-
"content-length": "36228",
4274+
"content-length": "38654",
41394275
"content-type": "application/json; charset=utf-8",
41404276
"content-version": StringMatching /v\\\\d\\+\\\\\\.\\\\d\\+/,
41414277
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
@@ -5212,6 +5348,20 @@ table.body h2 span {
52125348
52135349
<!-- END MAIN CONTENT AREA -->
52145350
5351+
<tr>
5352+
<td class=\\"feedback-buttons-container\\" dir=\\"ltr\\" width=\\"100%\\" align=\\"center\\" style=\\"font-family: -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif; font-size: 18px; vertical-align: top; color: #15212A; padding: 32px 0 24px; border-bottom: 1px solid #e0e7eb; text-align: center; background-color: #ffffff;\\" valign=\\"top\\" bgcolor=\\"#ffffff\\">
5353+
<table class=\\"feedback-buttons\\" role=\\"presentation\\" border=\\"0\\" cellpadding=\\"0\\" cellspacing=\\"0\\" style=\\"border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; margin: auto; width: 100%;\\" width=\\"100%\\">
5354+
<tr>
5355+
<td dir=\\"ltr\\" valign=\\"top\\" align=\\"center\\" style=\\"font-size: 18px; color: #15212A; display: inline-block; box-sizing: border-box; vertical-align: top; font-family: inherit; text-align: center; padding: 0 4px 4px; cursor: pointer; width: 100%;\\" width=\\"100%\\">
5356+
<a href=\\"http://127.0.0.1:2369/p/d52c42ae-2755-455c-80ec-70b2ec55c904/#ghost-comments-root\\" target=\\"_blank\\" style=\\"color: #FF1A75; text-decoration: none; overflow-wrap: anywhere;\\">
5357+
<img src=\\"https://static.ghost.org/v5.0.0/images/comment-mobile.png\\" border=\\"0\\" width=\\"42\\" height=\\"42\\" alt=\\"Comment\\" style=\\"border: none; -ms-interpolation-mode: bicubic; max-width: 100%; display: block; margin: 0 auto; vertical-align: middle;\\">
5358+
<p class=\\"feedback-button-text\\" style=\\"display: inline-block; font-family: -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif; color: #15212A; font-weight: 500; margin: 1em 0 0 0; line-height: 1.4; word-break: break-word; font-size: 13px;\\">Comment</p>
5359+
</a>
5360+
</td>
5361+
</tr>
5362+
</table>
5363+
</td>
5364+
</tr>
52155365
52165366
52175367
@@ -5403,6 +5553,26 @@ Testing links [https://ghost.org/] in email excerpt and apostrophes '
54035553
54045554
54055555
5556+
5557+
5558+
Comment
5559+
5560+
5561+
[http://127.0.0.1:2369/p/d52c42ae-2755-455c-80ec-70b2ec55c904/#ghost-comments-root]
5562+
5563+
5564+
5565+
5566+
5567+
5568+
5569+
5570+
5571+
5572+
5573+
5574+
5575+
54065576
Ghost © 2025Unsubscribe [http://127.0.0.1:2369/unsubscribe/?uuid=example-uuid&key=803e513e2d8b88e759d8f433779659af335d7308b4cbac809600d563f6b49a76&newsletter=requested-newsletter-uuid]
54075577
54085578
@@ -5444,7 +5614,7 @@ exports[`Email Preview API Read uses the posts newsletter by default 4: [headers
54445614
Object {
54455615
"access-control-allow-origin": "http://127.0.0.1:2369",
54465616
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
5447-
"content-length": "36228",
5617+
"content-length": "38654",
54485618
"content-type": "application/json; charset=utf-8",
54495619
"content-version": StringMatching /v\\\\d\\+\\\\\\.\\\\d\\+/,
54505620
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,

0 commit comments

Comments
 (0)