style: correct translation header and footer layout

This commit is contained in:
Valdemar Lorenzen
2026-10-15 13:43:40 +02:00
parent 5771a37fa8
commit 6574c97276
5 changed files with 42 additions and 48 deletions
@@ -47,4 +47,14 @@ import Testing
_ = launcher.control(search, textView: NSTextView(), doCommandBy: #selector(NSResponder.cancelOperation(_:)))
#expect(search.stringValue == "translate")
#expect(table.numberOfRows == 1)
_ = launcher.control(search, textView: NSTextView(), doCommandBy: #selector(NSResponder.insertNewline(_:)))
let back = try #require(descendants(content).compactMap { $0 as? NSButton }.first {
!$0.isHidden && $0.accessibilityLabel() == "Back to applications"
})
search.stringValue = "Hello"
launcher.controlTextDidChange(Notification(name: NSControl.textDidChangeNotification, object: search))
back.performClick(nil)
#expect(search.stringValue == "translate")
#expect(back.isHidden)
#expect(table.numberOfRows == 1)
}