Created 5 feature files covering blog generation, scheduling, LLM provider selection, SEO population, and notification emails. These files define the Gherkin scenarios that pytest-bdd will generate test functions for. - blog_generation.feature: On-demand generation with auto-publish toggle - blog_scheduling.feature: Scheduled cron slot execution - llm_provider_selection.feature: Provider dispatch and error handling - seo_population.feature: SEO metadata and tag assignment - notification_email.feature: Email notifications after generation Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
24 lines
1.1 KiB
Gherkin
24 lines
1.1 KiB
Gherkin
Feature: SEO field population
|
|
As a content system
|
|
I want generated blog posts to have SEO metadata
|
|
So that posts rank well in search engines
|
|
|
|
Scenario: All SEO fields are populated after generation
|
|
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 "Kubernetes Cost Optimization"
|
|
And I select provider "anthropic" and model "claude-sonnet-4-20250514"
|
|
When I click "Generate Now"
|
|
Then the SEO fields website_meta_title and website_meta_description are populated
|
|
And the blog.post has tags assigned
|
|
And the blog.post tags include "Kubernetes"
|
|
|
|
Scenario: Generated blog post has social media copy
|
|
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 "Enterprise AI Security"
|
|
When I click "Generate Now"
|
|
Then the blog.post has social media copy assigned
|
|
And at least one social platform is enabled
|