mirror of
https://github.com/hanzoai/bot.git
synced 2026-10-30 17:24:26 +00:00
Automated rebrand of all openclaw references to hanzo bot: - Package: openclaw -> @hanzo/bot - Binary: openclaw -> hanzo-bot - Config: ~/.openclaw -> ~/.hanzo/bot - Docker: ghcr.io/hanzoai/bot - Env vars: OPENCLAW_* -> BOT_* - Bundle IDs: ai.hanzo.bot.* - Product name: Hanzo Bot
42 lines
1.3 KiB
Swift
42 lines
1.3 KiB
Swift
import SwiftUI
|
|
import Testing
|
|
@testable import Hanzo Bot
|
|
|
|
@Suite(.serialized)
|
|
@MainActor
|
|
struct MenuContentSmokeTests {
|
|
@Test func `menu content builds body local mode`() {
|
|
let state = AppState(preview: true)
|
|
state.connectionMode = .local
|
|
let view = MenuContent(state: state, updater: nil)
|
|
_ = view.body
|
|
}
|
|
|
|
@Test func `menu content builds body remote mode`() {
|
|
let state = AppState(preview: true)
|
|
state.connectionMode = .remote
|
|
let view = MenuContent(state: state, updater: nil)
|
|
_ = view.body
|
|
}
|
|
|
|
@Test func `menu content builds body unconfigured mode`() {
|
|
let state = AppState(preview: true)
|
|
state.connectionMode = .unconfigured
|
|
let view = MenuContent(state: state, updater: nil)
|
|
_ = view.body
|
|
}
|
|
|
|
@Test func `menu content builds body with debug and canvas`() {
|
|
let state = AppState(preview: true)
|
|
state.connectionMode = .local
|
|
state.debugPaneEnabled = true
|
|
state.canvasEnabled = true
|
|
state.canvasPanelVisible = true
|
|
state.swabbleEnabled = true
|
|
state.voicePushToTalkEnabled = true
|
|
state.heartbeatsEnabled = true
|
|
let view = MenuContent(state: state, updater: nil)
|
|
_ = view.body
|
|
}
|
|
}
|