补充 Auth/Tasks/ScenicPermission/Live 单元测试,并完善 UI Test 登录与会话稳定性。

移除 LoginViewModel 硬编码账号,扩展登录流程测试覆盖;调整 ZLoginSmokeUITests 执行顺序与路由直达逻辑,避免清空 Keychain 影响其它用例。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-26 12:44:10 +08:00
parent aac8458b04
commit d27438b264
17 changed files with 1104 additions and 36 deletions

View File

@ -33,6 +33,7 @@ enum UITestSession {
line: UInt = #line
) throws -> SuixinkanApp {
sharedApp?.application.terminate()
Thread.sleep(forTimeInterval: 1.0)
let relaunched = try UITestAuthenticatedSession.launchLoggedIn(
openMenuTitle: menuTitle,
@ -51,6 +52,7 @@ enum UITestSession {
line: UInt = #line
) throws -> SuixinkanApp {
sharedApp?.application.terminate()
Thread.sleep(forTimeInterval: 1.0)
let relaunched = try UITestAuthenticatedSession.launchLoggedIn(
openProfileRoute: route,