fix(ios): update observation env in smoke tests
This commit is contained in:
@@ -18,9 +18,9 @@ import UIKit
|
|||||||
let bridgeController = BridgeConnectionController(appModel: appModel, startDiscovery: false)
|
let bridgeController = BridgeConnectionController(appModel: appModel, startDiscovery: false)
|
||||||
|
|
||||||
let root = SettingsTab()
|
let root = SettingsTab()
|
||||||
.environmentObject(appModel)
|
.environment(appModel)
|
||||||
.environmentObject(appModel.voiceWake)
|
.environment(appModel.voiceWake)
|
||||||
.environmentObject(bridgeController)
|
.environment(bridgeController)
|
||||||
|
|
||||||
_ = Self.host(root)
|
_ = Self.host(root)
|
||||||
}
|
}
|
||||||
@@ -30,9 +30,9 @@ import UIKit
|
|||||||
let bridgeController = BridgeConnectionController(appModel: appModel, startDiscovery: false)
|
let bridgeController = BridgeConnectionController(appModel: appModel, startDiscovery: false)
|
||||||
|
|
||||||
let root = RootTabs()
|
let root = RootTabs()
|
||||||
.environmentObject(appModel)
|
.environment(appModel)
|
||||||
.environmentObject(appModel.voiceWake)
|
.environment(appModel.voiceWake)
|
||||||
.environmentObject(bridgeController)
|
.environment(bridgeController)
|
||||||
|
|
||||||
_ = Self.host(root)
|
_ = Self.host(root)
|
||||||
}
|
}
|
||||||
@@ -41,8 +41,8 @@ import UIKit
|
|||||||
let appModel = NodeAppModel()
|
let appModel = NodeAppModel()
|
||||||
|
|
||||||
let root = VoiceTab()
|
let root = VoiceTab()
|
||||||
.environmentObject(appModel)
|
.environment(appModel)
|
||||||
.environmentObject(appModel.voiceWake)
|
.environment(appModel.voiceWake)
|
||||||
|
|
||||||
_ = Self.host(root)
|
_ = Self.host(root)
|
||||||
}
|
}
|
||||||
@@ -50,7 +50,7 @@ import UIKit
|
|||||||
@Test @MainActor func voiceWakeWordsViewBuildsAViewHierarchy() {
|
@Test @MainActor func voiceWakeWordsViewBuildsAViewHierarchy() {
|
||||||
let appModel = NodeAppModel()
|
let appModel = NodeAppModel()
|
||||||
let root = NavigationStack { VoiceWakeWordsSettingsView() }
|
let root = NavigationStack { VoiceWakeWordsSettingsView() }
|
||||||
.environmentObject(appModel)
|
.environment(appModel)
|
||||||
_ = Self.host(root)
|
_ = Self.host(root)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -58,8 +58,8 @@ import UIKit
|
|||||||
let appModel = NodeAppModel()
|
let appModel = NodeAppModel()
|
||||||
let bridge = BridgeSession()
|
let bridge = BridgeSession()
|
||||||
let root = ChatSheet(bridge: bridge, sessionKey: "test")
|
let root = ChatSheet(bridge: bridge, sessionKey: "test")
|
||||||
.environmentObject(appModel)
|
.environment(appModel)
|
||||||
.environmentObject(appModel.voiceWake)
|
.environment(appModel.voiceWake)
|
||||||
_ = Self.host(root)
|
_ = Self.host(root)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user