Cotton code
23 lines · 1001 B · SwiftRaw
// A line the shell says is drawn once in Comms, in Comms' own toast (lane// chat-warm-ios, 22 Nov 2026): on the owner's iPhone "Approved. … is signing// in." stood twice at once, as the old paper strip and as a rounded card.// Raised by refusing the invented Walk Mac (`ShellToastUI`), never a real request.import XCTestfinal class ChatShellToastTests: XCTestCase {    override func setUp() {        continueAfterFailure = false        XCUIDevice.shared.orientation = .portrait    }    // RULE: a line the shell says stands once, in Comms' own toast; the paper strip never stands.    @MainActor func testTheShellsLineIsDrawnOnceInCommsOwnToast() {        let app = XCUIApplication()        app.launchArguments += ["-chat-warm-seed", "YES"] + ShellCard.seed        app.launch()        XCTAssertTrue(app.buttons["chat-compose"].waitForExistence(timeout: 30), "Chats came in")        ShellToastUI.refuseTheSeed(app)        ShellToastUI.drawnOnceIn(app, own: "toast-comms")    }}