const { defineConfig } = require('@playwright/test'); module.exports = defineConfig({ testDir: './tests/e2e', timeout: 30000, retries: 1, use: { baseURL: process.env.BASE_URL || 'http://localhost:3000', extraHTTPHeaders: { 'Accept': 'application/json', }, }, webServer: { command: 'node src/server.js', port: 3000, timeout: 10000, reuseExistingServer: !process.env.CI, env: { NODE_ENV: 'test', PORT: '3000', STRIPE_SECRET_KEY: process.env.STRIPE_SECRET_KEY || 'sk_test_placeholder', STRIPE_WEBHOOK_SECRET: process.env.STRIPE_WEBHOOK_SECRET || 'whsec_test_secret', }, }, });