Cotton code
19 lines · 855 B · SwiftRaw
// Cotton Albums Dev on a simulator, over the synthetic library (scripts/albums-library.py) loaded there only. Nothing// here is anyone's photo.import XCTestfinal class AlbumsOpenTests: XCTestCase {    /// The app opens on its first screen (Start) or, once started, on Albums with its four places at the foot.    @MainActor func testItOpensOnFirstRunOrAlbums() {        let app = XCUIApplication()        app.launch()        let start = app.buttons["albums-start"]        let albums = app.buttons["albums-tab-albums"]        XCTAssertTrue(start.waitForExistence(timeout: 30) || albums.exists, "neither first run nor Albums stood")        if albums.exists {            for place in ["albums", "tidy", "people", "you"] { XCTAssertTrue(app.buttons["albums-tab-\(place)"].exists) }            XCTAssertTrue(albums.isSelected)        }    }}