import XCTest

@MainActor
final class StatusBarUITests: XCTestCase {

    override func setUpWithError() throws {
        continueAfterFailure = false
    }

    func testStatusBarButtonsPresence() throws {
        let app = XCUIApplication()
        app.launchPaired()

        let switcherButton = app.buttons["Switcher"]
        let settingsButton = app.buttons["Settings"]
        let unpairButton = app.buttons["Unpair"]

        XCTAssertTrue(switcherButton.waitForExistence(timeout: 10), "Switcher button should be present")
        XCTAssertTrue(settingsButton.waitForExistence(timeout: 5), "Settings button should be present")
        XCTAssertTrue(unpairButton.waitForExistence(timeout: 5), "Unpair button should be present")
    }
}
