feat: update app workflows and permissions
This commit is contained in:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user