Commit Graph

49 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
张翔 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
张翔 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
张翔 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
张翔 597a39d3ec feat: implement HTML report generation in MobileTestReporter 2026-03-05 16:01:27 +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
张翔 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
张翔 01d966bed3 feat: implement network condition simulation in NetworkSimulator 2026-03-05 15:10:02 +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
张翔 060566fd73 chore: clean up mobile test files and update components 2026-03-05 14:23:19 +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
张翔 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
张翔 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
张翔 ca7cb42f7d feat: 创建完整的安全测试
- 添加XSS防护测试(脚本注入、img标签、svg标签、javascript伪协议)
- 添加SQL注入防护测试(SQL注入、OR注入、注释注入)
- 添加路径遍历防护测试(路径遍历、编码路径遍历)
- 添加CSRF防护测试(CSRF令牌、令牌验证)
- 添加安全头测试(X-Frame-Options、X-Content-Type-Options等)
- 添加HTTPS强制跳转测试
- 添加输入验证测试(邮箱格式、手机号格式、必填字段)
- 添加敏感数据保护测试(页面源码、控制台日志)~
2026-02-28 16:05:06 +08:00
张翔 5131ba8880 feat: 创建Core Web Vitals性能测试
- 添加首页性能测试(加载时间、DOM内容、FCP、LCP、TTI、FID、CLS)
- 添加联系页面性能测试(加载时间、表单提交性能)
- 添加网络时序测试(DNS、TCP、SSL、请求、响应时间)
- 添加资源加载测试(关键资源、加载时间、失败资源)
- 添加滚动性能测试(平滑滚动、快速滚动)
- 添加交互性能测试(导航点击、联系按钮点击)
- 添加性能预算测试(总页面大小、图片、脚本、样式表)
2026-02-28 16:03:46 +08:00
张翔 a7fa9af853 feat: 创建完整的导航测试
- 添加Smoke测试(首页导航、联系页面导航)
- 添加Regression测试(区域导航、平滑滚动、页面导航)
- 添加移动端导航测试(菜单开关、移动端导航)
- 添加导航链接验证(所有链接、正确标签、可点击)
- 添加导航可访问性测试(键盘导航、ARIA标签)
- 添加导航响应式测试(移动端、桌面端、平板端)
2026-02-28 16:02:59 +08:00
张翔 9451814ca4 feat: 添加面包屑导航组件并优化页面布局
refactor: 重构页面结构和导航逻辑

fix: 修复移动端菜单导航和滚动行为

perf: 优化图片加载性能和资源请求

test: 添加端到端测试和性能测试用例

docs: 更新.gitignore文件

chore: 更新依赖和配置

style: 优化代码格式和类型安全

ci: 调整Playwright测试超时时间

build: 更新Next.js配置和构建选项
2026-02-28 09:09:04 +08:00
张翔 5838b87700 fix: adjust interaction performance thresholds to be more realistic 2026-02-27 11:43:39 +08:00
张翔 5d8bc5bb06 fix: improve performance monitoring and adjust thresholds 2026-02-27 11:31:27 +08:00
张翔 0c7a7f5b05 fix: update mobile menu tests to use mobile viewport 2026-02-27 11:10:00 +08:00
张翔 5d5b7feb0a feat(e2e): 添加完整的E2E测试框架和测试用例
添加Playwright测试框架配置和基础页面对象
实现冒烟测试用例覆盖首页和联系页面核心功能
更新导航组件以支持滚动高亮功能
添加BackButton组件统一返回按钮行为
配置Woodpecker CI集成和测试报告生成
2026-02-27 10:30:33 +08:00