Cotton code
34 lines · 1.6 KB · SwiftRaw
// The capture surface: the ground it stands on, and how it opens.//// Both findings come out of the Mac walk's re-shoot of 2026-09-15// (walk-13-v2), where `/capture` drew the capture bar at the foot of a column// that was solid WHITE above it, and the dictation timer already read 0:03 in// a launch nobody was sitting at.//// One of those is a defect and one is the design. This file says which.import CottonKitimport XCTest@testable import CottonUIfinal class CaptureSurfaceTests: XCTestCase {    // ── the ground ────────────────────────────────────────────────────────    // ── how it opens ──────────────────────────────────────────────────────    /// **Capture starts LISTENING, and that is the design** — the phone's New    /// thought pill has meant "you are being listened to" since the surface    /// existed, and a `/capture` link (a held tap's, a deep    /// link's) is the same instruction arriving from outside. So the Mac    /// keeps it: a link that raised a silent, ready composer would be a    /// different product on the two machines.    @MainActor    func testALinkIntoCaptureOpensTheMicrophone() {        let navigator = Navigator()        navigator.open(.capture)        XCTAssertEqual(navigator.capture, .listening)        XCTAssertTrue(navigator.stack.isEmpty, "an action-tier route raises capture and pushes nothing")    }}