Files
ai4se-harness-suite/example-project/e2e/playwright.config.ts
ning-inspire 26975e5c3a Initial commit: ai4se-harness-suite
Import harness suite (skills, installers, overnight-runner, docs) as a fresh history for InspireChina.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-17 09:57:41 +08:00

25 lines
730 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { defineConfig } from '@playwright/test'
// E2E 用例按归属分两层(详见 tests/README.md):
// tests/qa/ — QA 验收用例,合并闸门,用例基线在 docs/test-cases/e2e-cases/test-cases.md
// tests/dev/ — 开发自测用例,仅供开发期快速反馈
export default defineConfig({
testDir: './tests',
timeout: 30000,
retries: 1,
use: {
baseURL: 'http://localhost:5173',
viewport: { width: 1280, height: 800 },
screenshot: 'only-on-failure',
trace: 'on-first-retry',
},
projects: [
{ name: 'qa', testDir: './tests/qa' },
{ name: 'dev', testDir: './tests/dev' },
],
reporter: [
['list'],
['html', { outputFolder: 'playwright-report' }],
],
})