- adjustRange 改变范围时同时清空短语链接与已加载条目:调整端点后不再声称「已保存」, 已输入文本保留,保存按当前范围确定的身份写入(可能更新另一条,但绝不重复) - 新增 TestWordKeysNeverContainSpaces:显式锁定「词片段不含空白」这一不变量, termKind/termWordCount 完全依赖它,此前只有间接覆盖 - e2e 断言超时提高到 15s:11 个用例共用开发服务器并行运行时,首屏模块加载可能超过 默认 5s 造成偶发失败(产品行为未变,连续两次并行全量运行均通过)
18 lines
853 B
TypeScript
18 lines
853 B
TypeScript
import { defineConfig, devices } from '@playwright/test'
|
|
|
|
// Local development traffic must bypass any workstation HTTP proxy.
|
|
process.env.NO_PROXY = [process.env.NO_PROXY, '127.0.0.1', 'localhost'].filter(Boolean).join(',')
|
|
|
|
export default defineConfig({
|
|
testDir: './e2e',
|
|
forbidOnly: !!process.env.CI,
|
|
retries: 0,
|
|
reporter: 'list',
|
|
// Every spec loads the whole SPA from the shared dev server, so a slow first module graph
|
|
// under parallel workers must not fail an assertion that the app itself would pass.
|
|
expect: { timeout: 15000 },
|
|
use: { baseURL: 'http://127.0.0.1:5173', headless: true, trace: 'off' },
|
|
projects: [{ name: 'chromium', use: { ...devices['Desktop Chrome'], channel: 'chrome' } }],
|
|
webServer: { command: 'npm run dev -- --host 127.0.0.1', url: 'http://127.0.0.1:5173', reuseExistingServer: !process.env.CI },
|
|
})
|