ui: move translation credentials into settings
This commit is contained in:
@@ -3,7 +3,7 @@ import ConjureKit
|
||||
import Testing
|
||||
@testable import Conjure
|
||||
|
||||
@Test(arguments: ["launcher", "launcher-actions", "emoji", "emoji-actions", "translate-input", "translate-output", "translate-key", "notes-editor"])
|
||||
@Test(arguments: ["launcher", "launcher-actions", "emoji", "emoji-actions", "translate-input", "translate-output", "notes-editor"])
|
||||
@MainActor func escapeDismissesEntireLauncher(_ destination: String) throws {
|
||||
_ = NSApplication.shared
|
||||
let suite = "ConjureEscape.\(UUID().uuidString)"
|
||||
@@ -47,12 +47,6 @@ import Testing
|
||||
$0.accessibilityLabel() == "Japanese translation"
|
||||
})
|
||||
window.makeFirstResponder(output)
|
||||
} else if destination == "translate-key" {
|
||||
let provider = try #require(descendants(content).compactMap { $0 as? NSPopUpButton }.first)
|
||||
provider.selectItem(at: 1)
|
||||
_ = provider.target?.perform(provider.action, with: provider)
|
||||
let key = try #require(descendants(content).compactMap { $0 as? NSSecureTextField }.first)
|
||||
window.makeFirstResponder(key)
|
||||
} else if destination == "notes-editor" {
|
||||
let editor = try #require(descendants(content).compactMap { $0 as? NotesTextView }.first)
|
||||
window.makeFirstResponder(editor)
|
||||
|
||||
Reference in New Issue
Block a user