Fixing stuff
This commit is contained in:
@@ -33,11 +33,11 @@ import Testing
|
||||
#expect(route(cmd("a"), KeyContext(owner: .terminal)) == .pass)
|
||||
}
|
||||
|
||||
@Test func commandCFocusesTheCommitBoxUnlessThereIsSomethingToCopy() {
|
||||
@Test func commandCFocusesTheCommitBoxOutsideTheTerminalUnlessThereIsSomethingToCopy() {
|
||||
#expect(route(cmd("c")) == .perform(.focusCommitMessage))
|
||||
#expect(route(cmd("c"), KeyContext(owner: .text(in: .editor), hasTextSelection: true)) == .pass)
|
||||
#expect(route(cmd("c"), KeyContext(hasEditorLineSelection: true)) == .pass)
|
||||
#expect(route(cmd("c"), KeyContext(owner: .terminal)) == .perform(.focusCommitMessage))
|
||||
#expect(route(cmd("c"), KeyContext(owner: .terminal)) == .pass)
|
||||
#expect(route(cmd("c"), KeyContext(owner: .terminal, hasTextSelection: true)) == .pass)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user