Ver código fonte

fix(story-13.9): 修复环境变量处理不一致问题

- 统一 TEST_ENTERPRISE_PASSWORD 环境变量处理,使用默认值 'password123'
- 与其他测试文件保持一致(order-list-validation, dashboard-sync 等)
- 修复之前抛出错误导致测试无法运行的问题

Co-Authored-By: Claude <noreply@anthropic.com>
yourname 2 dias atrás
pai
commit
d00a3d832c

+ 1 - 6
web/tests/e2e/specs/cross-platform/talent-list-validation.spec.ts

@@ -41,12 +41,7 @@ import { EnterpriseMiniPage } from '../../pages/mini/enterprise-mini.page';
 
 // 测试数据常量
 const TEST_USER_PHONE = '13800001111';
-const TEST_USER_PASSWORD = process.env.TEST_ENTERPRISE_PASSWORD || '';
-
-// 验证环境变量已设置
-if (!TEST_USER_PASSWORD) {
-  throw new Error('TEST_ENTERPRISE_PASSWORD 环境变量未设置,请设置后重试');
-}
+const TEST_USER_PASSWORD = process.env.TEST_ENTERPRISE_PASSWORD || 'password123'; // 小程序登录密码
 
 /**
  * 企业小程序登录辅助函数