SHA256
Add HTTPS onboarding, origin policy, native recovery/settings, isolated web sign-in and file export. Portable production URL policy tests pass on Linux; all Swift sources parse. Xcode build and simulator validation remain required on macOS.
16 lines
521 B
Swift
16 lines
521 B
Swift
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)
|
|
}
|
|
}
|