feat: 添加Playwright E2E自动化测试完整方案
- 创建完整Playwright测试方案文档(docs/specs/) - 创建Playwright配置文件(tests/playwright.config.ts) - 创建测试数据工具类(tests/e2e/utils/test-data.ts) - 建立测试目录结构:fixtures/pages/specs/utils - 支持CI/CD集成,测试失败阻断发布 - 覆盖登录、门诊医生站、手术计费、Bug回归测试 关联任务: UI功能性测试方案落地
This commit is contained in:
13
openhis-ui-vue3/tests/e2e/utils/test-data.ts
Normal file
13
openhis-ui-vue3/tests/e2e/utils/test-data.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
export const TEST_USERS = {
|
||||
admin: {
|
||||
username: process.env.TEST_USERNAME || 'admin',
|
||||
password: process.env.TEST_PASSWORD || '123456',
|
||||
},
|
||||
};
|
||||
|
||||
export const TEST_URLS = {
|
||||
login: '/',
|
||||
dashboard: '/dashboard',
|
||||
doctorStation: '/doctorstation',
|
||||
surgeryBilling: '/surgery-billing',
|
||||
};
|
||||
Reference in New Issue
Block a user