集成 MJRefresh 并重构主 TabBar 为系统 TabView 样式。

新增 SwiftUI 桥接层与单元测试,更新 Tab 图标资源命名和多倍图,同步调整 UI Test 的 Tab/扫码定位逻辑。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-29 10:22:53 +08:00
parent 79e735f628
commit 8997d1ba1c
140 changed files with 6574 additions and 877 deletions

View File

@ -59,17 +59,20 @@ final class OrdersFlowUITests: AuthenticatedUITestCase {
}
}
///
func testScannerCanOpenAndClose() {
TabBarNavigator.select(.orders, app: app)
/// Tab
func testScannerCanOpenAndCloseWithoutChangingCurrentTab() {
TabBarNavigator.select(.home, app: app)
let scanButton = app.application.buttons["main.scan"]
let scanButton = TabBarNavigator.scannerButton(in: app)
XCTAssertTrue(scanButton.waitForExistence(timeout: 6))
scanButton.tap()
let closeButton = app.application.buttons["scanner.close"]
XCTAssertTrue(closeButton.waitForExistence(timeout: 8))
closeButton.tap()
NavigationAssertions.waitForNavigationTitle("订单", in: app)
XCTAssertTrue(
app.application.staticTexts["常用应用"].waitForExistence(timeout: 8)
|| app.application.staticTexts["请选择景区"].exists
)
}
}