mirror of
https://github.com/hanzoai/bot.git
synced 2026-10-30 17:24:26 +00:00
Comprehensive rename of all openclaw references to hanzo-bot equivalents: - Package: openclaw → @hanzo/bot - Binary: openclaw → hanzo-bot - Types: OpenClaw* → Bot* - Env vars: OPENCLAW_* → BOT_* - Android: ai.openclaw.android → ai.hanzo.bot.android - iOS/macOS: ai.openclaw.* → ai.hanzo.* - Swift modules: OpenClaw* → Bot* - Plugins: openclaw.plugin.json → bot.plugin.json - Paths: .openclaw/ → .hanzo/bot/ - URLs: github.com/openclaw → github.com/hanzoai
29 lines
892 B
Swift
29 lines
892 B
Swift
import BotDiscovery
|
|
import SwiftUI
|
|
import Testing
|
|
@testable import HanzoBot
|
|
|
|
@Suite(.serialized)
|
|
@MainActor
|
|
struct OnboardingViewSmokeTests {
|
|
@Test func onboardingViewBuildsBody() {
|
|
let state = AppState(preview: true)
|
|
let view = OnboardingView(
|
|
state: state,
|
|
permissionMonitor: PermissionMonitor.shared,
|
|
discoveryModel: GatewayDiscoveryModel(localDisplayName: InstanceIdentity.displayName))
|
|
_ = view.body
|
|
}
|
|
|
|
@Test func pageOrderOmitsWorkspaceAndIdentitySteps() {
|
|
let order = OnboardingView.pageOrder(for: .local, showOnboardingChat: false)
|
|
#expect(!order.contains(7))
|
|
#expect(order.contains(3))
|
|
}
|
|
|
|
@Test func pageOrderOmitsOnboardingChatWhenIdentityKnown() {
|
|
let order = OnboardingView.pageOrder(for: .local, showOnboardingChat: false)
|
|
#expect(!order.contains(8))
|
|
}
|
|
}
|