e2e: 通知页强断言用例(组件真实性 + ceshi 菜单端到端)
notice-reality:分页真换页/过滤共存/人员列姓名/富文本编辑器渲染/单确认/查看只读 逐条强断言(取代"弹窗能开=通过"的弱断言);notice-ceshi-menu:ceshi 真实登录从 菜单进通知管理端到端。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
31
playwright.notice-reality.config.ts
Normal file
31
playwright.notice-reality.config.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
import { defineConfig, devices } from '@playwright/test';
|
||||
|
||||
// ────────────────────────────────────────────────────────────────────────────
|
||||
// 通知管理「组件真实性」强断言 e2e 专属配置
|
||||
//
|
||||
// 与默认 playwright.config.ts 的区别(关键):
|
||||
// - baseURL 指向【已在跑】的 5173 dev server(eip4-web),不自拉 webServer。
|
||||
// - 不配置 webServer ⇒ 不重启任何服务(任务硬约束:环境都在跑,勿重启)。
|
||||
// - screenshot:'on' ⇒ 每条用例都留证(artifacts/notice-reality/)。
|
||||
// - 仅匹配 notice-reality.spec.ts,避免误跑其他 spec。
|
||||
//
|
||||
// 运行:npx playwright test --config=playwright.notice-reality.config.ts
|
||||
// 前置:localhost:5173(前端 dev)+ localhost:8093(后端 dev/eip4dev)+ psql:5433。
|
||||
// ────────────────────────────────────────────────────────────────────────────
|
||||
export default defineConfig({
|
||||
testDir: './e2e',
|
||||
testMatch: /notice-reality\.spec\.ts/,
|
||||
fullyParallel: false,
|
||||
workers: 1,
|
||||
timeout: 90_000,
|
||||
reporter: [['list']],
|
||||
outputDir: './e2e/artifacts/notice-reality/_pw-output',
|
||||
use: {
|
||||
baseURL: 'http://localhost:5173',
|
||||
trace: 'retain-on-failure',
|
||||
screenshot: 'on',
|
||||
video: 'off',
|
||||
},
|
||||
projects: [{ name: 'chromium', use: { ...devices['Desktop Chrome'] } }],
|
||||
// 注意:故意不配置 webServer —— 复用已在跑的 5173,不重启。
|
||||
});
|
||||
Reference in New Issue
Block a user