Files
Yuvomi-App/ios/UITests/OnboardingTests.swift
Yuvomi Mobile Contributors 97570b7fdf feat(ios): replace embedded website with initial native SwiftUI API client
Introduce real SwiftUI auth/dashboard/task/note/shopping screens, a bounded origin-bound URLSession transport and Keychain-backed native sessions. Archive the rejected WebKit renderer rather than embedding it for unfinished modules. Sixteen portable URL/contract/transport tests and Swift format/parsing pass on Linux; Apple SDK application and UI validation remains mandatory. This is an incomplete native slice, not full PWA parity or a release.
2026-10-21 08:57:31 +02:00

17 lines
550 B
Swift

import XCTest
final class OnboardingTests: XCTestCase {
func testRejectsCleartextWithoutNetwork() {
let app = XCUIApplication()
app.launch()
let field = app.textFields["server-url"]
XCTAssertTrue(field.waitForExistence(timeout: 5))
field.tap()
field.typeText("http://family.example")
app.buttons["connect"].tap()
XCTAssertTrue(app.staticTexts["invalid-server"].waitForExistence(timeout: 3))
XCTAssertTrue(field.exists)
XCTAssertEqual(app.webViews.count, 0)
}
}