From 18f4748e8b0f9d05e02a9a6e68f2fde7c3eeb18c Mon Sep 17 00:00:00 2001 From: Simon Backx Date: Thu, 21 Apr 2022 15:48:25 +0200 Subject: [PATCH] Fixed tests partially for updated member counts no issue Also moves some reused test methods to the test helpers folder (wasn't able to move it to the fixtures because too many tests were failing): - enableNewsletters helper - enableStripe helper - enableMailgun helper --- .../gh-members-recipient-select.hbs | 4 +-- ghost/admin/mirage/config/members.js | 2 +- ghost/admin/tests/acceptance/editor-test.js | 34 +++++++++---------- .../tests/acceptance/members/details-test.js | 20 +++-------- .../tests/acceptance/members/filter-test.js | 15 +++----- ghost/admin/tests/helpers/mailgun.js | 13 +++++++ ghost/admin/tests/helpers/newsletters.js | 5 +++ ghost/admin/tests/helpers/stripe.js | 12 +++++++ 8 files changed, 58 insertions(+), 47 deletions(-) create mode 100644 ghost/admin/tests/helpers/mailgun.js create mode 100644 ghost/admin/tests/helpers/newsletters.js create mode 100644 ghost/admin/tests/helpers/stripe.js diff --git a/ghost/admin/app/components/gh-members-recipient-select.hbs b/ghost/admin/app/components/gh-members-recipient-select.hbs index 290b4ab45c..a2eb7b0177 100644 --- a/ghost/admin/app/components/gh-members-recipient-select.hbs +++ b/ghost/admin/app/components/gh-members-recipient-select.hbs @@ -1,5 +1,5 @@
-

Free members {{this.freeMemberCountLabel}}

+

Free members {{this.freeMemberCountLabel}}