Cotton code
19 lines · 881 B · SwiftRaw
// Cotton Post Dev on a simulator. Hand walks run through HandWalkTests (UITests/Shared); this suite's own check is// that You reaches Delete account, as Apple asks of an app that makes accounts (IPHONE READY 1).import XCTestfinal class PostYouTests: XCTestCase {    /// You opens Sync, and Sync ends with Delete account while signed in (or says nothing of it, signed out).    @MainActor func testYouReachesSync() {        let app = XCUIApplication()        app.launch()        let you = app.buttons["post-tab-you"]        guard you.waitForExistence(timeout: 60) else { return XCTFail("no You tab") }        you.tap()        let sync = app.descendants(matching: .any)["post-you-sync"]        XCTAssertTrue(sync.waitForExistence(timeout: 20))        sync.tap()        XCTAssertTrue(app.descendants(matching: .any)["post-sync"].waitForExistence(timeout: 10))    }}