Proving newsletter automation
End-to-end test that publishes and emails via the Ghost CLI.
We deleted our previous test posts so we could demonstrate a fresh, auditable run that sends a newsletter using the Ghost Admin API.
The command we run below should:
- Convert this Markdown to HTML (
markdown-it). - Publish it immediately (
--publish). - Ask Ghost to email the
default-newsletteraudience (--send-email). - Hit the public URL until we see HTTP
200with the headline.