style: align translation controls with launcher design

This commit is contained in:
Valdemar Lorenzen
2026-10-15 11:16:49 +02:00
parent c31424b217
commit 31c651ecb1
4 changed files with 43 additions and 11 deletions
@@ -44,9 +44,7 @@ import Testing
#expect(search.accessibilityLabel() == "English text to translate into Japanese")
search.stringValue = "Good morning"
launcher.controlTextDidChange(Notification(name: NSControl.textDidChangeNotification, object: search))
#expect(descendants(content).contains { ($0 as? NSButton)?.title == "Translate ↵" })
_ = launcher.control(search, textView: NSTextView(), doCommandBy: #selector(NSResponder.cancelOperation(_:)))
#expect(search.stringValue == "translate")
#expect(!descendants(content).contains { ($0 as? NSButton)?.title == "Translate ↵" })
#expect(table.numberOfRows == 1)
}