Skip to content

Fastest and only macOS Dictation app with on-device STT and custom trained AI enhancement model. Windows, iOS testflight! Android, Linux waitlist open! A local Wispr Flow alternative. Follow https://x.com/fluidvoiceapp for more

test isolate microphone migration defaults

altic-dev710fb5699c0f
diff --git a/Tests/FluidDictationIntegrationTests/HotkeyShortcutTests.swift b/Tests/FluidDictationIntegrationTests/HotkeyShortcutTests.swift
index 5ed8960c..1bdeae59 100644
--- a/Tests/FluidDictationIntegrationTests/HotkeyShortcutTests.swift
+++ b/Tests/FluidDictationIntegrationTests/HotkeyShortcutTests.swift
@@ -545,9 +545,14 @@ final class HotkeyShortcutTests: XCTestCase {
@MainActor
func testMicrophoneMigrationWaitsForAUsableDeviceList() throws {
try self.withRestoredDefaults(keys: [
+ self.microphoneSelectionModeKey,
self.preferredInputDeviceUIDKey,
self.microphoneSelectionMigrationVersionKey,
]) {
+ UserDefaults.standard.set(
+ SettingsStore.MicrophoneSelectionMode.system.rawValue,
+ forKey: self.microphoneSelectionModeKey
+ )
SettingsStore.shared.preferredInputDeviceUID = "airpods"
SettingsStore.shared.microphoneSelectionMigrationVersion = 0
let devices = FakeAudioDeviceManager(inputs: [], defaultInputUID: nil)
@@ -593,9 +598,14 @@ final class HotkeyShortcutTests: XCTestCase {
@MainActor
func testMicrophoneMigrationWithoutBuiltInReplacesMissingSelectionWithDefault() throws {
try self.withRestoredDefaults(keys: [
+ self.microphoneSelectionModeKey,
self.preferredInputDeviceUIDKey,
self.microphoneSelectionMigrationVersionKey,
]) {
+ UserDefaults.standard.set(
+ SettingsStore.MicrophoneSelectionMode.system.rawValue,
+ forKey: self.microphoneSelectionModeKey
+ )
SettingsStore.shared.preferredInputDeviceUID = "internal"
SettingsStore.shared.microphoneSelectionMigrationVersion = 0
let devices = FakeAudioDeviceManager(