mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Updated email batch sending snapshots
This commit is contained in:
parent
48a3159d3d
commit
c591f1f86a
2 changed files with 1184 additions and 226 deletions
File diff suppressed because it is too large
Load diff
|
@ -943,7 +943,7 @@ describe('Batch sending tests', function () {
|
||||||
await lastEmailMatchSnapshot();
|
await lastEmailMatchSnapshot();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Shows 2 comment buttons for published posts without feedback enabled', async function () {
|
it('Shows 3 comment buttons for published posts without feedback enabled', async function () {
|
||||||
mockSetting('comments_enabled', 'all');
|
mockSetting('comments_enabled', 'all');
|
||||||
mockSetting('email_track_clicks', false); // Disable link replacement for this test
|
mockSetting('email_track_clicks', false); // Disable link replacement for this test
|
||||||
|
|
||||||
|
@ -957,11 +957,11 @@ describe('Batch sending tests', function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
// Currently the link is not present in plaintext version (because no text)
|
// Currently the link is not present in plaintext version (because no text)
|
||||||
assert.equal(html.match(/#ghost-comments/g).length, 2, 'Every email should have two buttons to comments');
|
assert.equal(html.match(/#ghost-comments/g).length, 3, 'Every email should have 3 buttons to comments');
|
||||||
await lastEmailMatchSnapshot();
|
await lastEmailMatchSnapshot();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Shows 2 comment buttons for published posts with feedback enabled', async function () {
|
it('Shows 3 comment buttons for published posts with feedback enabled', async function () {
|
||||||
mockSetting('comments_enabled', 'all');
|
mockSetting('comments_enabled', 'all');
|
||||||
mockSetting('email_track_clicks', false); // Disable link replacement for this test
|
mockSetting('email_track_clicks', false); // Disable link replacement for this test
|
||||||
|
|
||||||
|
@ -975,7 +975,7 @@ describe('Batch sending tests', function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
// Currently the link is not present in plaintext version (because no text)
|
// Currently the link is not present in plaintext version (because no text)
|
||||||
assert.equal(html.match(/#ghost-comments/g).length, 2, 'Every email should have two buttons to comments');
|
assert.equal(html.match(/#ghost-comments/g).length, 3, 'Every email should have 3 buttons to comments');
|
||||||
await lastEmailMatchSnapshot();
|
await lastEmailMatchSnapshot();
|
||||||
|
|
||||||
// undo
|
// undo
|
||||||
|
|
Loading…
Add table
Reference in a new issue