From ed235b374d3650dffe1dcef141b94a8447d080f4 Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Tue, 31 May 2022 22:59:12 +0100 Subject: [PATCH] Increased publish flow acceptance tests refs https://github.com/TryGhost/Team/issues/1586 - updated `?newsletter_id=id` handling in posts API mock to match the real `?newsletter=slug` behaviour - added additional publish flow acceptance tests for single/multiple newsletter behaviour, scheduling, and sending --- .../editor/modals/publish-flow/complete.hbs | 2 +- .../editor/modals/publish-flow/confirm.js | 2 +- .../editor/modals/publish-flow/options.hbs | 2 +- .../components/editor/publish-management.js | 2 +- .../publish-options/email-recipients.hbs | 4 +- .../editor/publish-options/publish-at.hbs | 4 +- ghost/admin/mirage/config/posts.js | 6 +- .../acceptance/editor/publish-flow-test.js | 226 ++++++++++++++++-- ghost/admin/tests/helpers/stripe.js | 22 +- 9 files changed, 236 insertions(+), 34 deletions(-) diff --git a/ghost/admin/app/components/editor/modals/publish-flow/complete.hbs b/ghost/admin/app/components/editor/modals/publish-flow/complete.hbs index 9181b79ad4..2c4d146fca 100644 --- a/ghost/admin/app/components/editor/modals/publish-flow/complete.hbs +++ b/ghost/admin/app/components/editor/modals/publish-flow/complete.hbs @@ -35,7 +35,7 @@ {{#if post.emailOnly}} -
+

Your post {{if post.isScheduled "will be" "was"}} diff --git a/ghost/admin/app/components/editor/modals/publish-flow/confirm.js b/ghost/admin/app/components/editor/modals/publish-flow/confirm.js index e5262fb029..6247e07415 100644 --- a/ghost/admin/app/components/editor/modals/publish-flow/confirm.js +++ b/ghost/admin/app/components/editor/modals/publish-flow/confirm.js @@ -23,7 +23,7 @@ export default class PublishFlowOptions extends Component { buttonTextMap = { 'publish+send': { - idle: 'Publish & Send', + idle: 'Publish & send', running: 'Publishing & sending', success: 'Published & sent' }, diff --git a/ghost/admin/app/components/editor/modals/publish-flow/options.hbs b/ghost/admin/app/components/editor/modals/publish-flow/options.hbs index 95bb472c36..f2ac69907d 100644 --- a/ghost/admin/app/components/editor/modals/publish-flow/options.hbs +++ b/ghost/admin/app/components/editor/modals/publish-flow/options.hbs @@ -109,7 +109,7 @@

{{/if}} -
+