mirror of
https://github.com/hanzoai/bot.git
synced 2026-11-01 07:38:30 +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
29 lines
1.0 KiB
Swift
29 lines
1.0 KiB
Swift
import SwiftUI
|
|
import Testing
|
|
@testable import Hanzo Bot
|
|
|
|
@Suite(.serialized)
|
|
@MainActor
|
|
struct VoiceWakeOverlayViewSmokeTests {
|
|
@Test func `overlay view builds body in display mode`() {
|
|
let controller = VoiceWakeOverlayController(enableUI: false)
|
|
_ = controller.startSession(source: .wakeWord, transcript: "hello", forwardEnabled: true)
|
|
let view = VoiceWakeOverlayView(controller: controller)
|
|
_ = view.body
|
|
}
|
|
|
|
@Test func `overlay view builds body in editing mode`() {
|
|
let controller = VoiceWakeOverlayController(enableUI: false)
|
|
let token = controller.startSession(source: .pushToTalk, transcript: "edit me", forwardEnabled: true)
|
|
controller.userBeganEditing()
|
|
controller.updateLevel(token: token, 0.6)
|
|
let view = VoiceWakeOverlayView(controller: controller)
|
|
_ = view.body
|
|
}
|
|
|
|
@Test func `close button overlay builds body`() {
|
|
let view = CloseButtonOverlay(isVisible: true, onHover: { _ in }, onClose: {})
|
|
_ = view.body
|
|
}
|
|
}
|