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:
2026-06-12 13:54:22 +08:00
parent 785e766719
commit b7cba058d5
4 changed files with 1142 additions and 0 deletions

View 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,不重启。
});