mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-24 07:39:33 +00:00
Prune unused iOS surfaces and regenerate the Xcode project. Add a scoped Periphery PR gate with hardened artifact handling and stale-status cleanup. Co-authored-by: Sash Zats <sash@zats.io>
33 lines
1.1 KiB
Swift
33 lines
1.1 KiB
Swift
import Testing
|
|
@testable import OpenClaw
|
|
|
|
@Suite struct SettingsNetworkingHelpersTests {
|
|
@Test func diagnosticsIssuesNameEachReviewerVisibleCheck() {
|
|
#expect(
|
|
SettingsDiagnostics.issues(
|
|
gatewayConnected: false,
|
|
discoveredGatewayCount: 0,
|
|
talkConfigLoaded: false,
|
|
notificationStatusText: "Not Set") == [
|
|
.gatewayOffline,
|
|
.discoveryUnavailable,
|
|
.notificationsUnavailable,
|
|
])
|
|
}
|
|
|
|
@Test func diagnosticsIssuesRequireTalkConfigOnlyAfterGatewayConnects() {
|
|
#expect(
|
|
SettingsDiagnostics.issues(
|
|
gatewayConnected: true,
|
|
discoveredGatewayCount: 1,
|
|
talkConfigLoaded: false,
|
|
notificationStatusText: "Allowed") == [.talkConfigMissing])
|
|
#expect(
|
|
SettingsDiagnostics.issueCount(
|
|
gatewayConnected: true,
|
|
discoveredGatewayCount: 1,
|
|
talkConfigLoaded: true,
|
|
notificationStatusText: "Allowed") == 0)
|
|
}
|
|
}
|