fix: add TechCrunch source and increase retries for flaky generation test

The live generation test depends on real OpenAI + web scraping.
Adding a second source improves chances of finding articles.
Retries increased from 1 to 2.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
master
oabrivard 3 months ago
parent 7d58b6e019
commit 1b20d38bbd

@ -17,7 +17,7 @@ dotenv.config({ path: resolve(__dirname, '.env.test') });
export default defineConfig({
testDir: './tests',
timeout: 30_000,
retries: 1,
retries: 2,
workers: 1,
use: {

@ -179,6 +179,13 @@ test.describe('Live generation with OpenAI', () => {
});
expect(sourceResp.status).toBe(201);
// Add a second source for better coverage
await apiCall(page, 'POST', '/api/v1/sources', {
title: 'TechCrunch AI',
url: 'https://techcrunch.com/category/artificial-intelligence/',
theme_id: themeId,
});
// Step 5: Trigger generation
const genResp = await apiCall(
page,

Loading…
Cancel
Save