Commit Graph

71 Commits

Author SHA1 Message Date
张翔 b7cf440b71 feat: add permissions control E2E tests 2026-03-12 22:11:59 +08:00
张翔 b7a03fa590 feat: add rich text editor E2E tests 2026-03-12 22:10:14 +08:00
张翔 8266926d78 feat: add service management E2E tests 2026-03-12 22:07:32 +08:00
张翔 1cd7d30dc2 feat: add news management E2E tests 2026-03-12 22:06:01 +08:00
张翔 f846b38807 feat: add case management E2E tests 2026-03-12 22:04:32 +08:00
张翔 05b67a5766 feat: add product management E2E tests 2026-03-12 22:03:16 +08:00
张翔 9db07d58c3 fix: resolve test skip issues in admin regression tests 2026-03-12 21:59:39 +08:00
张翔 d378be9ec1 fix: improve admin login test stability and fix admin email 2026-03-12 21:56:49 +08:00
张翔 27f6278f00 feat: add test data management for admin E2E tests 2026-03-12 21:51:41 +08:00
张翔 b207bfa7af feat: 增加测试覆盖率并优化代码质量
test: 添加单元测试和端到端测试
refactor: 重构登录页面和上传模块
ci: 更新测试覆盖率阈值至42%
build: 添加测试相关依赖
docs: 更新测试文档
style: 修复代码格式问题
2026-03-11 11:14:37 +08:00
张翔 e8dffa4f05 chore: remove GitHub Actions workflows, use Woodpecker CI exclusively 2026-03-10 13:10:11 +08:00
张翔 4ece85a9c3 feat: 添加生产环境部署和监控配置
- 新增生产环境部署脚本和文档
- 添加监控系统配置(Alertmanager, Prometheus, Grafana)
- 更新e2e测试用例以适配新环境
- 添加.env.production配置文件
- 优化Sentry初始化逻辑为动态加载
- 新增全局设置脚本以支持不同环境
2026-03-09 16:37:23 +08:00
张翔 6d92024b63 feat: 修复测试套件问题并添加Woodpecker CI配置
- 修复API测试认证问题:创建全局认证设置,更新Playwright配置
- 优化回归测试稳定性:增加超时时间到15秒,修复定位器
- 创建Woodpecker CI工作流:CI、部署和质量门禁配置
- 添加Jest配置和测试脚本
- 移除登录页面的默认账号密码显示(安全问题修复)
2026-03-09 10:26:02 +08:00
张翔 11b0123c20 feat: add visual regression test snapshots
Add Playwright visual regression test baseline snapshots for:
- Contact page (22 snapshots)
- Home page (18 snapshots)
- Visual regression suite (35 snapshots)

Total: 75 baseline snapshots (~9.6MB)

These snapshots serve as visual regression testing baselines and should
be committed to version control according to Playwright best practices.

Benefits:
- Ensures UI consistency across changes
- Detects unintended visual changes
- Provides baseline for cross-browser testing
- Enables team collaboration with consistent snapshots

Following Playwright documentation:
https://playwright.dev/docs/test-snapshots

Snapshots are stored in:
- e2e/src/tests/visual/contact-page.visual.spec.ts-snapshots/
- e2e/src/tests/visual/home-page.visual.spec.ts-snapshots/
- e2e/src/tests/visual/visual-regression.spec.ts-snapshots/~
2026-03-07 15:16:16 +08:00
张翔 92af40df8e fix: resolve test failures and improve test stability
- Fix navigation menu display and click issues
- Fix scroll to top/bottom test failures
- Fix section display tests by removing non-existent contact section
- Add data-testid attributes for better test reliability
- Optimize test expectations for scroll behavior
- Add contact page layout for metadata export
- Update section components with proper ARIA attributes
2026-03-07 10:47:14 +08:00
张翔 c4d135d37e fix: optimize test timeouts and wait conditions for better stability 2026-03-05 23:00:32 +08:00
张翔 c678df44ae fix: improve footer visibility with data-testid and waitForFooter method 2026-03-05 22:53:12 +08:00
张翔 f91f57cbbb fix: improve scrollToSection and skip Contact section test on home page 2026-03-05 22:49:32 +08:00
张翔 44e756aa3b fix: improve scrollToTop implementation and test expectations 2026-03-05 22:14:23 +08:00
张翔 2d6cd79067 fix: add name and data-testid attributes for form input fields 2026-03-05 21:51:50 +08:00
张翔 318081a62a fix: add data-testid attributes for contact page elements 2026-03-05 21:49:12 +08:00
张翔 2f6f6a6aca fix: add navigation role attribute for better test selector 2026-03-05 20:59:25 +08:00
张翔 a3533a8c98 fix: resolve transferSize TypeScript error in mobile performance test 2026-03-05 16:43:04 +08:00
张翔 941e5170e1 fix: resolve remaining TypeScript errors in mobile testing~ 2026-03-05 16:42:16 +08:00
张翔 c4fcbb6059 fix: resolve TypeScript type errors in mobile testing utilities~ 2026-03-05 16:31:47 +08:00
张翔 597a39d3ec feat: implement HTML report generation in MobileTestReporter 2026-03-05 16:01:27 +08:00
张翔 8a43c0f5c2 feat: create MobileTestReporter base structure 2026-03-05 15:58:25 +08:00
张翔 9e5d61cfed feat: add mobile network environment test suite 2026-03-05 15:50:05 +08:00
张翔 0074a9aab1 feat: add mobile PWA functionality test suite 2026-03-05 15:48:07 +08:00
张翔 edb8b249f8 feat: add mobile gesture interaction test suite 2026-03-05 15:30:13 +08:00
张翔 57c002b26c feat: add mobile compatibility test suite 2026-03-05 15:28:51 +08:00
张翔 8611f84b48 feat: add mobile performance test suite 2026-03-05 15:27:55 +08:00
张翔 834dbcadf4 feat: implement Core Web Vitals monitoring in MobilePerformanceMonitor 2026-03-05 15:23:16 +08:00
张翔 3f18618c84 feat: create MobilePerformanceMonitor base structure 2026-03-05 15:21:29 +08:00
张翔 858eb2efcf feat: implement network condition simulation in NetworkSimulator 2026-03-05 15:20:40 +08:00
张翔 06c5fe8f82 feat: integrate Lighthouse in MobilePerformanceMonitor 2026-03-05 15:15:22 +08:00
张翔 8194317a20 feat: implement Core Web Vitals monitoring in MobilePerformanceMonitor 2026-03-05 15:12:33 +08:00
张翔 478adb1986 feat: create MobilePerformanceMonitor base structure 2026-03-05 15:11:22 +08:00
张翔 01d966bed3 feat: implement network condition simulation in NetworkSimulator 2026-03-05 15:10:02 +08:00
张翔 dd9ccfe8b3 feat: create NetworkSimulator base structure 2026-03-05 15:05:50 +08:00
张翔 531cd1567a feat: implement drag gesture in GestureSimulator 2026-03-05 15:04:29 +08:00
张翔 12ff5fc1f3 feat: implement long press and double tap gestures 2026-03-05 14:59:06 +08:00
张翔 302fafef49 feat: implement pinch gesture in GestureSimulator 2026-03-05 14:58:28 +08:00
张翔 656480a95d feat: implement swipe gesture in GestureSimulator 2026-03-05 14:51:33 +08:00
张翔 f2bd48f634 feat: create GestureSimulator base structure 2026-03-05 14:46:55 +08:00
张翔 726579a833 feat: add mobile test data generator 2026-03-05 14:34:44 +08:00
张翔 c4d758ad6e feat: add network configuration for mobile testing 2026-03-05 14:32:46 +08:00
张翔 7777675e3e feat: add iPad device configurations (iPad Air, iPad Pro 12.9) 2026-03-05 14:31:54 +08:00
张翔 0de19b4371 feat: add Android device configurations (Pixel 7, Galaxy S23) 2026-03-05 14:30:47 +08:00
张翔 fa77f36b4d feat: add iPhone 13/14/15 Pro device configurations 2026-03-05 14:29:34 +08:00