import { defineConfig, devices } from '@playwright/test' // MITHOME-127: two projects with opposite indexing expectations — // `staging` (smoke, expects noindex) and `production-seo` (expects an // indexable site). BASE_URL overrides the target of either. export default defineConfig({ testDir: './e2e', timeout: 30_000, retries: process.env.CI ? 1 : 0, reporter: [['list'], ['html', { open: 'never' }]], use: { trace: 'retain-on-failure', screenshot: 'only-on-failure', video: 'retain-on-failure', }, projects: [ { name: 'staging', testMatch: 'staging-smoke.spec.ts', use: { ...devices['Desktop Chrome'], baseURL: process.env.BASE_URL || 'https://stage.mozdit.hu' }, }, { name: 'production-seo', testMatch: 'production-seo.spec.ts', use: { ...devices['Desktop Chrome'], baseURL: process.env.BASE_URL || 'https://mozdit.hu' }, }, ], })