// The one settings shape every app's settings page offers (DECISIONS.md // "Settings", 21 Nov 2026), as each app's tests check it: Storage's four // parts and Free up space, Help and feedback's Share a report, About's // Version, in that order under Account; Share a report showing the whole // report before anything is shared; the account's internal facts said under // About alone. Every word is the core's; these find the parts by identifier. import XCTest enum SettingsPartsUI { @MainActor static func id(_ app: XCUIApplication, _ identifier: String) -> XCUIElement { app.descendants(matching: .any).matching(identifier: identifier).firstMatch } /// Swipes up until `element` can be touched (at most `tries` times). @MainActor static func reach(_ app: XCUIApplication, _ element: XCUIElement, tries: Int = 14) { for _ in 0.. Bool { let gone = XCTNSPredicateExpectation(predicate: NSPredicate(format: "exists == false"), object: element) return XCTWaiter().wait(for: [gone], timeout: timeout) == .completed } /// The largest accessibility text size, set at launch. static let largestText = ["-UIPreferredContentSizeCategoryName", "UICTContentSizeCategoryAccessibilityXXXL"] }