You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
912 B
TypeScript
38 lines
912 B
TypeScript
import { defineConfig } from '@playwright/test';
|
|
import dotenv from 'dotenv';
|
|
import { fileURLToPath } from 'url';
|
|
import { dirname, resolve } from 'path';
|
|
|
|
// Load e2e/.env.test if it exists (contains OPENAI_TEST_API_KEY)
|
|
const __filename = fileURLToPath(import.meta.url);
|
|
const __dirname = dirname(__filename);
|
|
dotenv.config({ path: resolve(__dirname, '.env.test') });
|
|
|
|
/**
|
|
* Playwright configuration for AI Weekly Synth E2E tests.
|
|
*
|
|
* Tests run against the Docker-composed stack on http://localhost:8080.
|
|
* A single worker is used to avoid parallel DB state mutations.
|
|
*/
|
|
export default defineConfig({
|
|
testDir: './tests',
|
|
timeout: 30_000,
|
|
retries: 2,
|
|
workers: 1,
|
|
|
|
use: {
|
|
baseURL: 'http://localhost:8080',
|
|
screenshot: 'only-on-failure',
|
|
trace: 'on-first-retry',
|
|
},
|
|
|
|
projects: [
|
|
{
|
|
name: 'chromium',
|
|
use: {
|
|
browserName: 'chromium',
|
|
},
|
|
},
|
|
],
|
|
});
|