Ghost/ghost/core/test/e2e-api/admin
Simon Backx 819d0d884c
Improved email verification required checks (#16060)
fixes https://github.com/TryGhost/Team/issues/2366
refs https://ghost.slack.com/archives/C02G9E68C/p1670232405014209

Probem described in issue.

In the old MEGA flow:
- The `email_verification_required` check is now repeated inside the job

In the new email service flow:
- The `email_verification_required` is now checked (didn't happen
before)
- When generating the email batch recipients, we only include members
that were created before the email was created. That way it is
impossible to avoid limit checks by inserting new members between
creating an email and sending an email.
- We don't need to repeat the check inside the job because of the above
changes

Improved handling of large imports:
- When checking `email_verification_required`, we now also check if the
import threshold is reached (a new method is introduced in
vertificationTrigger specifically for this usage). If it is, we start
the verification progress. This is required for long running imports
that only check the verification threshold at the very end.
- This change increases the concurrency of fastq to 3 (refs
https://ghost.slack.com/archives/C02G9E68C/p1670232405014209). So when
running a long import, it is now possible to send emails without having
to wait for the import. Above change makes sure it is not possible to
get around the verification limits.

Refactoring:
- Removed the need to use `updateVerificationTrigger` by making
thresholds getters instead of fixed variables.
- Improved awaiting of members import job in regression test
2023-01-04 11:22:12 +01:00
..
__snapshots__ 🐛 Fixed tiers order by monthly_price (#16013) 2023-01-03 12:59:18 +04:00
actions.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
activity-feed.test.js Added events to Post Analytics page (#15886) 2022-11-28 17:43:35 +04:00
config.test.js 💡 Upgraded Tenor API to v2 (#15087) 2022-08-05 12:13:27 +01:00
custom-theme-settings.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
db.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
email-previews.test.js Added email service package (#15849) 2022-11-21 10:29:53 +01:00
emails.test.js Added email debug API (#15915) 2022-12-02 09:44:32 +01:00
explore.test.js Updated content-length header matchers 2022-10-05 17:34:17 +08:00
files.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
images.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
integrations.test.js Updated tests to incl. host limit cases for core integrations 2022-08-12 14:18:44 +01:00
invites.test.js Removed bluebird catch predicates from API endpoints 2022-08-24 11:27:09 +01:00
key-authentication.test.js Updated tests to incl. host limit cases for core integrations 2022-08-12 14:18:44 +01:00
labels.test.js Removed bluebird catch predicates from API endpoints 2022-08-24 11:27:09 +01:00
links.test.js Extracted sleep method to e2e framework module 2022-12-05 17:26:29 +07:00
media.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
members-exporter.test.js Added E2E tests for batch sending (#15910) 2022-12-01 13:43:49 +01:00
members-importer.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
members-newsletters.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
members-stripe-connect.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
members.test.js Improved email verification required checks (#16060) 2023-01-04 11:22:12 +01:00
newsletters.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
notifications.test.js Refactored notifications e2e tests to use test framework 2022-09-09 19:51:50 +08:00
oembed.test.js 🐛 Fixed embedded cards for non-utf8 content (#15578) 2022-10-13 12:19:47 +01:00
offers.test.js Handled stripe setup for free trial offers 2022-08-11 11:04:39 +05:30
pages.test.js Added rendering of posts.lexical to posts.html when saving (#15416) 2022-09-15 16:49:14 +01:00
posts-legacy.test.js Added email service package (#15849) 2022-11-21 10:29:53 +01:00
posts.test.js Hardened tiers-related snapshot tests 2022-10-27 15:54:28 +08:00
rate-limiting.test.js 🔒 Fixed rate limiting for user login (#15336) 2022-08-31 10:33:42 -04:00
redirects.test.js Improved performance of prepareContentFolder function 2022-08-01 08:58:13 +02:00
roles.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
session.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
settings-files.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
settings.test.js 🐛 Fixed SingleUseTokens being cleared on boot (#15999) 2023-01-04 09:49:39 +01:00
site.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
slugs.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
snippets.test.js Removed bluebird catch predicates from API endpoints 2022-08-24 11:27:09 +01:00
stats.test.js Added new referrer source stats API (#15449) 2022-09-22 16:34:26 +05:30
tags.test.js Removed bluebird catch predicates from API endpoints 2022-08-24 11:27:09 +01:00
themes.test.js Improved performance of prepareContentFolder function 2022-08-01 08:58:13 +02:00
tiers.test.js Fixed invalid query strings in tests 2022-11-30 13:31:06 +07:00
users.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
utils.js Reduced default post relations (#15798) 2022-11-15 10:17:26 +01:00
webhooks.test.js Removed bluebird catch predicates from API endpoints 2022-08-24 11:27:09 +01:00