Commit Graph

201 Commits

Author SHA1 Message Date
张翔 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
张翔 3c5d79f7e3 feat: merge mobile testing implementation
- Add comprehensive mobile testing framework
- Implement gesture simulator with swipe, pinch, long press, double tap, and drag
- Add network simulator for various network conditions
- Implement mobile performance monitor with Core Web Vitals
- Create mobile test suites for performance, compatibility, gesture, PWA, and network
- Add mobile test reporter with HTML report generation
- Optimize parallel test execution
- Add mobile testing documentation~
2026-03-05 16:45:18 +08:00
张翔 136fe7ac04 fix: update gitignore and footer component 2026-03-05 16:43:44 +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
张翔 8bca0e0af4 docs: add mobile testing guide 2026-03-05 16:09:20 +08:00
张翔 94204a1a45 feat: optimize parallel test execution 2026-03-05 16:02:16 +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
张翔 56d1172588 feat: extend Playwright config for mobile testing 2026-03-05 14:36:02 +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
张翔 060566fd73 chore: clean up mobile test files and update components 2026-03-05 14:23:19 +08:00
张翔 0bb1f5c12a docs: add mobile testing execution guide 2026-03-05 14:19:28 +08:00
张翔 acfb1ccadc docs: add mobile testing implementation plan 2026-03-05 14:16:51 +08:00
张翔 f7904cb924 docs: add mobile testing enhancement design document 2026-03-05 14:13:09 +08:00
张翔 6797c24b5c feat: 添加移动端适配和测试功能
refactor(layout): 优化页脚布局和备案信息展示
feat(constants): 添加ICP备案和公安备案信息
feat(header): 实现移动端加载时的骨架屏效果
style(globals): 调整文字颜色和添加移动端响应样式
feat(breadcrumb): 增加返回按钮和响应式优化
feat(e2e): 添加移动端测试工具和测试用例
docs: 添加页脚重设计文档
2026-03-05 11:40:21 +08:00
张翔 834fb3bc3b docs: 添加移动端测试改进实施计划 2026-03-05 10:36:57 +08:00
张翔 34f00fd4db docs: 添加移动端测试评估报告和设计方案 2026-03-05 10:32:41 +08:00
张翔 9cbc80742a feat: 重构联系页面并增强安全性
refactor: 优化导航和路由逻辑

fix: 修复移动端样式问题

perf: 优化字体加载和性能

test: 添加安全性和可访问性测试

style: 调整按钮和表单样式

chore: 更新依赖版本

ci: 添加安全头配置

build: 优化构建配置

docs: 更新常量信息
2026-03-01 10:56:54 +08:00
张翔 13c4a2ca49 feat: 优化网站性能、响应式设计和测试覆盖率
- 更新next.config.ts配置以优化图片和静态资源
- 优化字体加载策略,减少首屏阻塞
- 使用Next.js Image组件替换img标签并实现懒加载
- 重构移动端菜单交互,提升触摸体验
- 新增安全测试和可访问性测试用例
- 修复导航栏滚动定位问题
- 更新部署就绪测试脚本
- 添加相关文档说明优化细节
2026-02-28 22:32:45 +08:00
张翔 7b2a8af19f docs: 添加E2E测试短期优化完成报告
- 总结所有4个短期优化任务的完成情况
- 详细记录关键成果和技术栈
- 统计测试覆盖和质量提升(+52.2%测试数量,+20%综合覆盖率)
- 记录测试执行时间优化效果(58.8%缩短)
- 提供下一步建议(中期、长期)
- 包含相关文档和Git提交记录
2026-02-28 16:48:09 +08:00
张翔 eeccc59630 feat: 建立Allure测试报告系统
- 安装allure-playwright和allure-commandline依赖
- 添加Allure相关的npm脚本(test:allure、test:allure:open、test:allure:serve)
- 在playwright.config.ts中集成Allure reporter
- 创建Allure测试报告系统使用指南
- 支持测试描述、步骤、标签、严重级别、套件、链接、附件、参数等功能
- 支持CI/CD集成(Woodpecker、GitHub Actions、GitLab CI)
2026-02-28 16:46:55 +08:00
张翔 927264b2f0 feat: 优化测试执行时间
- 将CI环境workers从1增加到4,支持并行执行
- 创建测试执行优化指南文档
- 优化效果:测试执行时间从68分钟缩短到28分钟(58.8%)
- 主要优化技术:并行执行、测试分组、减少等待、禁用不必要的截图/视频
2026-02-28 16:43:00 +08:00
张翔 b69083f164 feat: 创建完整的视觉回归测试
- 添加首页视觉测试(完整页面、头部、Hero区域、导航、页脚、各区域)
- 添加联系页面视觉测试(完整页面、表单、填写后、错误状态)
- 添加响应式视觉测试(移动端、平板端、桌面端)
- 添加交互状态视觉测试(链接hover、按钮hover/focus、输入框focus、移动端菜单)
- 添加滚动状态视觉测试(顶部、中部、底部)
- 添加表单验证视觉测试(成功状态、失败状态)
- 添加加载状态视觉测试(加载前、加载完成)
- 添加错误状态视觉测试(404页面、500错误页面)
- 添加主题切换视觉测试(亮色主题、暗色主题)~
2026-02-28 16:40:36 +08:00
张翔 71c9b1453f feat: 创建完整的WCAG 2.1 AA可访问性测试
- 添加首页可访问性测试(严重违规、AA标准、ARIA标签、键盘导航、颜色对比度)
- 添加联系页面可访问性测试(表单标签、ARIA属性、必填字段、键盘导航、触摸目标)
- 添加响应式可访问性测试(移动端菜单、触摸目标、桌面端导航)
- 添加颜色对比度测试(普通文本、大号文本)
- 添加键盘导航测试(Tab导航、Enter激活、Escape关闭)
- 添加屏幕阅读器兼容性测试(ARIA角色、ARIA标签、live region)
- 添加可访问性最佳实践测试(页面标题、meta描述、favicon、跳过导航、焦点管理)~
2026-02-28 16:35:05 +08:00