# ================================================================= # Post-generation notification email # ================================================================= Feature: Post-generation notification email As an ITSulu content admin I want to receive one email after each successful blog post publication So that I have the social media copy ready to paste Background: Given the notification email recipient is "nicholasr@itsulu.com" Scenario: Notification email is sent after successful auto-publish Given a blog post was generated and auto-published When the generation completes Then exactly one email is sent to "nicholasr@itsulu.com" And the email subject matches "[ITSulu Insights] Blog Post Published: {title} - {date}" Scenario: Notification email is NOT sent for draft posts Given the Anthropic API key is configured in Settings And the blog "ITSulu Insights" exists in Odoo And I am on the Blog Publisher backend form And I enter topic "Draft Topic No Email" And I set auto-publish to False When I click "Generate Now" Then a blog.post record is created with a non-empty title And the blog.post is_published is False And no email is sent to "nicholasr@itsulu.com"