Files
novalon-website/docs/acceptance/2026-09-21-gates/probe/pw.config.ts
T
zhangxiang a0328a623f chore(qa): 验收台账与证据入库 + 构建/部署配置同步
- docs/acceptance/qa-tracker.md:跨周期缺陷单一真源台账(§7=第五轮)。
- 周期 1/2 + iPhone SE/axe 验收证据目录、ACCEPTANCE_REVIEW 快照入库。
- 同步 README/CONTEXT/CLAUDE/DESIGN/testing/deployment/lessons-learned 口径;
  next.config/Dockerfile/nginx/Jenkinsfile/docker-compose/sentry/prisma 对齐
  standalone 产物装配与部署形态。
2026-09-28 10:48:09 +08:00

34 lines
1.1 KiB
TypeScript
Raw 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, devices } from '@playwright/test';
// 探针:`chromium-mobile` 项目里 browserName 到底是什么、真正跑的是哪个引擎。
// 起因:最终树 28 条 skipped 有 7 条落在 chromium-mobile(cms-workflow ×3 + Touchscreen ×1 + GA4 ×4),
// 而跳过条件写成 `browserName !== 'chromium'` ⇒ 该项目内条件为真。
export default defineConfig({
testDir: __dirname,
fullyParallel: true,
reporter: [['list']],
projects: [
{
name: 'replica-chromium-mobile',
use: {
...devices['iPhone 14'],
viewport: { width: 390, height: 844 },
isMobile: true,
hasTouch: true,
},
},
{
// 正对照:显式写 browserName,看是否与"仅 spread devices"得到不同的 fixture 值
name: 'explicit-chromium-mobile',
browserName: 'chromium',
use: {
...devices['iPhone 14'],
viewport: { width: 390, height: 844 },
isMobile: true,
hasTouch: true,
},
},
{ name: 'plain-desktop', use: { ...devices['Desktop Chrome'] } },
],
});