//
//  WiredTransferSettingChipButtonTests.swift
//  suixinkanTests
//

import XCTest
@testable import suixinkan

final class WiredTransferSettingChipButtonTests: XCTestCase {
    @MainActor
    func testApplyTitleUpdatesAccessibilityLabel() {
        let button = WiredTransferSettingChipButton()
        button.apply(title: "AI修图")
        XCTAssertEqual(button.titleText, "AI修图")
        XCTAssertEqual(button.accessibilityLabel, "AI修图")
    }

    @MainActor
    func testShowsChevronDefaultsToFalse() {
        let button = WiredTransferSettingChipButton()
        XCTAssertFalse(button.showsChevron)
    }

    @MainActor
    func testInitWithShowsChevronTrue() {
        let button = WiredTransferSettingChipButton(showsChevron: true)
        XCTAssertTrue(button.showsChevron)
    }
}
