xst
|
4b4b83a2c0
|
fix: save_auth 改为纯手动模式,不再尝试自动填表
用户自己在浏览器中完成验证码登录后按 Enter,脚本仅负责检测并保存 storage_state
|
2026-07-15 10:59:24 +08:00 |
|
xst
|
49eb9bcd2b
|
fix: 适配 hash 路由登录页 (/#/login)
|
2026-07-15 10:55:08 +08:00 |
|
xst
|
7c5a4c5de7
|
fix: Playwright API camelCase → snake_case (Python 版)
- getByPlaceholder → get_by_placeholder
- getByRole → get_by_role
- getByText → get_by_text
- getByTestId → get_by_test_id
|
2026-07-15 10:52:16 +08:00 |
|
xst
|
7b4a54f1ce
|
feat: 框架增加登录态复用机制,绕过图形验证码
Web 端 (storage_state):
- 新增 tests/web/save_auth.py: 手动登录后保存 cookies+localStorage
- conftest.py: skip_login:true 时自动加载 storage_state,跳过 UI 登录
- ensure_login fixture: 登录态有效则直接通过,过期则给出明确指引
App 端 (noReset):
- conftest.py: ensure_logged_in fixture,手动登录后无需重新登录
- noReset=true 持久化登录态,未登录自动检测并给出明确引导
配置文件:
- web.skip_login: true + storage_state_dir
- app.skip_login: true + 手动登录说明
|
2026-07-15 10:47:34 +08:00 |
|