fix: 修复Playwright页面对象定义错误 + 根目录config
- 修复LoginPage/SurgeryBillingPage/DoctorStationPage中page变量作用域问题 - 新增根目录playwright.config.ts(解决配置加载问题) - .gitignore添加test-results和report目录排除
This commit is contained in:
@@ -1,18 +1,7 @@
|
||||
import { defineConfig, devices } from '@playwright/test';
|
||||
|
||||
/**
|
||||
* OpenHIS Playwright E2E 测试配置 v2.0
|
||||
*
|
||||
* 运行命令:
|
||||
* npx playwright test # 全部测试
|
||||
* npx playwright test --project=chromium # 仅Chrome
|
||||
* npx playwright test login # 仅登录测试
|
||||
* npx playwright test --ui # UI交互模式
|
||||
* npx playwright test --headed # 有头模式(可视化)
|
||||
* npx playwright test --tags=@smoke # 仅冒烟测试
|
||||
*/
|
||||
export default defineConfig({
|
||||
testDir: './tests/e2e/specs',
|
||||
testDir: './e2e/specs',
|
||||
fullyParallel: true,
|
||||
timeout: 60_000,
|
||||
expect: { timeout: 10_000 },
|
||||
@@ -35,6 +24,5 @@ export default defineConfig({
|
||||
},
|
||||
projects: [
|
||||
{ name: 'chromium', use: { ...devices['Desktop Chrome'] } },
|
||||
{ name: 'firefox', use: { ...devices['Desktop Firefox'] } },
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user