feat: update app workflows and permissions

This commit is contained in:
2026-07-09 17:34:00 +08:00
parent 43e6133c21
commit 8e356973bd
44 changed files with 2944 additions and 307 deletions

View File

@ -47,6 +47,16 @@ final class OrderListUITokensTests: XCTestCase {
badge.applyOrderStatus(50, text: "已退款")
XCTAssertEqual(badge.backgroundColor?.hexRGB, AppColor.dangerBackground.hexRGB)
}
func testOrderTypeChipIntrinsicSizeWrapsTextWithPadding() {
let chip = OrderTypeChipView()
chip.apply(text: "订单类型")
let size = chip.intrinsicContentSize
XCTAssertGreaterThan(size.width, "订单类型".size(withAttributes: [.font: UIFont.app(.caption)]).width)
XCTAssertGreaterThan(size.height, UIFont.app(.caption).lineHeight)
XCTAssertFalse(chip.isHidden)
}
}
private extension UIColor {