0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/test/regression/api/admin
Thibaut Patel ed29c7addf Filtered member email recipients based on the newsletter subscriptions (#14489)
refs https://github.com/TryGhost/Team/issues/1524

- We need to fetch the post newsletter to grab the slug as it's needed for the member NQL filter.
- We can then use the newsletter slug and append it in the existing member NQL filter.
- Removed `subscribed:true` when an email is sent to a newsletter and replaced it with the newsletter id
- Added `status:-free` when an email is sent to a newsletter with `visibility` set to `paid`
- Added tests what happens when you publish without newsletter_id
- Added tests what happens when you publish with newsletter_id

Co-authored-by: Simon Backx <simon@ghost.org>
2022-04-26 12:31:34 +01:00
..
__snapshots__ Added expectEmptyBody assertions to e2e framework 2022-03-31 18:56:05 +01:00
authentication.test.js Updated newsletter fixtures to remove nullable sender name (#14479) 2022-04-14 23:45:59 +05:30
db.test.js Aliased canary endpoints to point to non-versioned URLs 2022-03-14 21:22:54 +13:00
identities.test.js
images.test.js
members-importer.test.js Updated all members tests to use mockManager 2022-02-10 12:21:05 +00:00
members-signin-url.test.js Fixed filename casing in canary API 2022-03-24 17:25:53 +00:00
notifications.test.js
pages.test.js
posts.test.js Filtered member email recipients based on the newsletter subscriptions (#14489) 2022-04-26 12:31:34 +01:00
redirects.test.js
schedules.test.js Aliased canary endpoints to point to non-versioned URLs 2022-03-14 21:22:54 +13:00
settings.test.js
slack.test.js
users.test.js
utils.js Aliased canary endpoints to point to non-versioned URLs 2022-03-14 21:22:54 +13:00
webhooks.test.js Aliased canary endpoints to point to non-versioned URLs 2022-03-14 21:22:54 +13:00