import XCTest final class OnboardingTests: XCTestCase { func testRejectsCleartextWithoutNetwork() { let app = XCUIApplication() app.launch() let field = app.textFields["Yuvomi server URL"] XCTAssertTrue(field.waitForExistence(timeout: 5)) field.tap() field.typeText("http://family.example") app.buttons["Connect securely"].tap() XCTAssertTrue(app.staticTexts["connectionError"].waitForExistence(timeout: 3)) XCTAssertTrue(field.exists) } }