feat(admin): 添加用户管理相关文件
添加用户管理视图、API和状态管理文件
This commit is contained in:
@@ -0,0 +1,160 @@
|
||||
# E2E测试配置文件
|
||||
|
||||
# 环境配置
|
||||
environments:
|
||||
dev:
|
||||
# Admin端配置
|
||||
admin:
|
||||
base_url: "http://localhost:5174"
|
||||
api_url: "http://127.0.0.1:8080"
|
||||
|
||||
# Uniapp端配置
|
||||
uniapp:
|
||||
base_url: "http://localhost:8081"
|
||||
api_url: "http://127.0.0.1:8080"
|
||||
|
||||
# 超时配置(毫秒)
|
||||
timeout:
|
||||
default: 30000
|
||||
navigation: 30000
|
||||
element: 10000
|
||||
network: 30000
|
||||
|
||||
# 浏览器配置
|
||||
browser:
|
||||
name: "chromium"
|
||||
headless: false
|
||||
viewport_width: 1920
|
||||
viewport_height: 1080
|
||||
slow_mo: 0
|
||||
|
||||
# 重试配置
|
||||
retries: 2
|
||||
|
||||
# 并行配置
|
||||
workers: 1
|
||||
parallel: false
|
||||
|
||||
test:
|
||||
admin:
|
||||
base_url: "http://test-admin.example.com"
|
||||
api_url: "http://test-api.example.com"
|
||||
|
||||
uniapp:
|
||||
base_url: "http://test-uniapp.example.com"
|
||||
api_url: "http://test-api.example.com"
|
||||
|
||||
timeout:
|
||||
default: 30000
|
||||
navigation: 30000
|
||||
element: 10000
|
||||
network: 30000
|
||||
|
||||
browser:
|
||||
name: "chromium"
|
||||
headless: true
|
||||
viewport_width: 1920
|
||||
viewport_height: 1080
|
||||
slow_mo: 0
|
||||
|
||||
retries: 2
|
||||
workers: 4
|
||||
parallel: true
|
||||
|
||||
prod:
|
||||
admin:
|
||||
base_url: "https://admin.example.com"
|
||||
api_url: "https://api.example.com"
|
||||
|
||||
uniapp:
|
||||
base_url: "https://uniapp.example.com"
|
||||
api_url: "https://api.example.com"
|
||||
|
||||
timeout:
|
||||
default: 60000
|
||||
navigation: 60000
|
||||
element: 20000
|
||||
network: 60000
|
||||
|
||||
browser:
|
||||
name: "chromium"
|
||||
headless: true
|
||||
viewport_width: 1920
|
||||
viewport_height: 1080
|
||||
slow_mo: 0
|
||||
|
||||
retries: 3
|
||||
workers: 4
|
||||
parallel: true
|
||||
|
||||
# 测试用户数据
|
||||
users:
|
||||
admin:
|
||||
username: "admin"
|
||||
password: "admin123456"
|
||||
role: "admin"
|
||||
|
||||
test_user:
|
||||
username: "testuser"
|
||||
password: "test123"
|
||||
role: "user"
|
||||
|
||||
invalid_user:
|
||||
username: "invalid"
|
||||
password: "wrong"
|
||||
role: "user"
|
||||
|
||||
# 测试数据配置
|
||||
test_data:
|
||||
# 用户管理测试数据
|
||||
user_management:
|
||||
default_password: "Test@123456"
|
||||
min_username_length: 3
|
||||
max_username_length: 20
|
||||
|
||||
# 角色管理测试数据
|
||||
role_management:
|
||||
default_permissions:
|
||||
- "user:read"
|
||||
- "user:write"
|
||||
- "role:read"
|
||||
|
||||
# 黄历测试数据
|
||||
almanac:
|
||||
test_dates:
|
||||
spring_festival: "2026-02-17"
|
||||
lantern_festival: "2026-03-03"
|
||||
dragon_boat: "2026-06-19"
|
||||
mid_autumn: "2026-09-25"
|
||||
|
||||
# 截图配置
|
||||
screenshot:
|
||||
enabled: true
|
||||
on_failure: true
|
||||
path: "reports/screenshots"
|
||||
|
||||
# 录像配置
|
||||
video:
|
||||
enabled: false
|
||||
on_failure: true
|
||||
path: "reports/videos"
|
||||
|
||||
# 追踪配置
|
||||
trace:
|
||||
enabled: false
|
||||
on_failure: true
|
||||
path: "reports/traces"
|
||||
|
||||
# 报告配置
|
||||
report:
|
||||
html:
|
||||
enabled: true
|
||||
path: "reports/html"
|
||||
|
||||
allure:
|
||||
enabled: true
|
||||
path: "reports/allure-results"
|
||||
|
||||
json:
|
||||
enabled: true
|
||||
path: "reports/json"
|
||||
Reference in New Issue
Block a user