按模块拆分 XCUITest 用例与 Support 基础设施,UI Test 运行时跳过推送与排队 WebSocket,并将 Podfile 最低版本对齐 iOS 16。 Co-authored-by: Cursor <cursoragent@cursor.com>
27 lines
999 B
Swift
27 lines
999 B
Swift
//
|
|
// LocationReportUITests.swift
|
|
// suixinkanUITests
|
|
//
|
|
|
|
import XCTest
|
|
|
|
final class LocationReportUITests: AuthenticatedUITestCase {
|
|
/// 测试位置上报与历史记录页。
|
|
func testLocationReportAndHistory() {
|
|
DebugMenuNavigator.open(app: app)
|
|
DebugMenuNavigator.tapMenu(title: "位置上报", app: app)
|
|
NavigationAssertions.waitForNavigationTitle("位置上报", in: app)
|
|
|
|
let historyEntry = app.application.staticTexts.matching(NSPredicate(format: "label CONTAINS '历史'")).firstMatch
|
|
if historyEntry.waitForExistence(timeout: 6) {
|
|
historyEntry.tap()
|
|
NavigationAssertions.waitForNavigationTitle("位置上报历史", in: app)
|
|
} else {
|
|
BackNavigator.goBack(app: app)
|
|
DebugMenuNavigator.open(app: app)
|
|
DebugMenuNavigator.tapMenu(title: "定位上报历史", app: app)
|
|
NavigationAssertions.waitForNavigationTitle("位置上报历史", in: app)
|
|
}
|
|
}
|
|
}
|