style: correct translation header and footer layout
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user