Files
iven eb956d0dce
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
feat: 新增管理后台前端项目及安全加固
refactor(saas): 重构认证中间件与限流策略
- 登录限流调整为5次/分钟/IP
- 注册限流调整为3次/小时/IP
- GET请求不计入限流

fix(saas): 修复调度器时间戳处理
- 使用NOW()替代文本时间戳
- 兼容TEXT和TIMESTAMPTZ列类型

feat(saas): 实现环境变量插值
- 支持${ENV_VAR}语法解析
- 数据库密码支持环境变量注入

chore: 新增前端管理界面
- 基于React+Ant Design Pro
- 包含路由守卫/错误边界
- 对接58个API端点

docs: 更新安全加固文档
- 新增密钥管理规范
- 记录P0安全项审计结果
- 补充TLS终止说明

test: 完善配置解析单元测试
- 新增环境变量插值测试用例
2026-03-31 00:11:33 +08:00
..

E2E Tests

This directory contains end-to-end tests for ZCLAW desktop application.

Test Strategy

Due to ZCLAW being a Tauri 22.0 desktop application, E2E testing requires special consideration:

Option 1: Vitest + @testing-library/react (Current)

  • Unit and integration tests use Vitest
  • Component tests use @testing-library/react
  • Already configured and working (312 tests passing)

Option 2: Playwright for Web UI (Future)

  • Playwright is available in desktop/node_modules
  • Can test the React UI layer independently
  • Cannot directly test Tauri native functionality
  • Use Tauri's built-in test utilities
  • Requires tauri-driver package
  • Can test full application including native functionality

Current Status

  • Unit Tests: 312 tests passing
  • Integration Tests: Store and component integration verified
  • E2E Tests: 🚧 Framework setup in progress

Running Tests

# Unit/Integration tests
pnpm vitest run

# E2E tests (when implemented)
pnpm test:e2e

Test Coverage

Area Unit Integration E2E
Stores -
Components -
Gateway Client -
Tauri Commands - - 🚧
Full User Flow - - 🚧