SHA256
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.
17 lines
550 B
Swift
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)
|
|
}
|
|
}
|