diff --git a/ghost/admin/app/components/editor/modals/publish-flow/complete-with-email-error.hbs b/ghost/admin/app/components/editor/modals/publish-flow/complete-with-email-error.hbs index ee39f5731f..621001312e 100644 --- a/ghost/admin/app/components/editor/modals/publish-flow/complete-with-email-error.hbs +++ b/ghost/admin/app/components/editor/modals/publish-flow/complete-with-email-error.hbs @@ -26,7 +26,7 @@
createModel({})); + + /** + * !! WARNING !! + * If the error message is changed that it no longer contains the word 'partially', + * we'll also need the frontend logic in ghost/admin/app/components/editor/modals/publish-flow/complete-with-email-error.js + */ await assert.rejects(service.sendBatches({ email: createModel({}), batches, post: createModel({}), newsletter: createModel({}) - }), /was only partially sent/); + }), /was only partially sent/); // do not change without reading the warning above + sinon.assert.callCount(sendBatch, 101); const sendBatches = sendBatch.getCalls().map(call => call.args[0].batch); assert.deepEqual(sendBatches, batches);