按模块拆分 XCUITest 用例与 Support 基础设施,UI Test 运行时跳过推送与排队 WebSocket,并将 Podfile 最低版本对齐 iOS 16。 Co-authored-by: Cursor <cursoragent@cursor.com>
26 lines
745 B
Swift
26 lines
745 B
Swift
//
|
|
// AuthFlowUITests.swift
|
|
// suixinkanUITests
|
|
//
|
|
|
|
import XCTest
|
|
|
|
final class AuthFlowUITests: AuthenticatedUITestCase {
|
|
/// 测试完整登录后可进入主 Tab。
|
|
func testLoginReachesMainTabs() {
|
|
XCTAssertTrue(app.isOnMainTabs)
|
|
}
|
|
|
|
/// 测试登录后默认能访问首页和我的 Tab。
|
|
func testLoggedInUserCanSwitchPrimaryTabs() {
|
|
TabBarNavigator.select(.home, app: app)
|
|
XCTAssertTrue(
|
|
app.application.staticTexts["常用应用"].waitForExistence(timeout: 8)
|
|
|| app.application.staticTexts["请选择景区"].exists
|
|
)
|
|
|
|
TabBarNavigator.select(.profile, app: app)
|
|
NavigationAssertions.waitForNavigationTitle("个人信息", in: app)
|
|
}
|
|
}
|