feat: 修复测试套件问题并添加Woodpecker CI配置

- 修复API测试认证问题:创建全局认证设置,更新Playwright配置
- 优化回归测试稳定性:增加超时时间到15秒,修复定位器
- 创建Woodpecker CI工作流:CI、部署和质量门禁配置
- 添加Jest配置和测试脚本
- 移除登录页面的默认账号密码显示(安全问题修复)
This commit is contained in:
张翔
2026-03-09 10:26:02 +08:00
parent 96c96fe75d
commit 6d92024b63
68 changed files with 5584 additions and 167 deletions
+1 -1
View File
@@ -25,5 +25,5 @@ export const environments: Record<string, TestConfig> = {
};
export function getEnvironmentConfig(env: string = 'development'): TestConfig {
return environments[env] || environments.development;
return environments[env] ?? environments.development!;
}
+4
View File
@@ -0,0 +1,4 @@
export * from './environments';
export * from './test-pages';
export * from './test-data';
export * from './base.config';
+1 -1
View File
@@ -66,7 +66,7 @@ export const testPages: Record<string, PageConfig> = {
};
export function getPageConfig(pageKey: string): PageConfig {
return testPages[pageKey] || testPages.home;
return testPages[pageKey] ?? testPages.home!;
}
export function getAllPageConfigs(): PageConfig[] {