toggling between views made possible
This commit is contained in:
@@ -137,6 +137,7 @@ import Testing
|
||||
@Test func aGitRowOpensInTheEditorThenPassesOnItsPath() {
|
||||
#expect(ContextActions.entries(for: .gitRow(path: "src/a.php", isDeleted: false)) == [
|
||||
.action(.openFile("src/a.php"), label: "Open in editor"),
|
||||
.action(.openDiff("src/a.php"), label: "Open diff"),
|
||||
.separator,
|
||||
.action(.passOnReference("src/a.php", code: nil), label: "Pass on reference"),
|
||||
.action(.copyReference("src/a.php"), label: "Copy reference"),
|
||||
@@ -146,6 +147,8 @@ import Testing
|
||||
.action(.copyReference("gone.php"), label: "Copy reference"),
|
||||
])
|
||||
#expect(ContextAction.openFile("src/a.php").isEmphasized)
|
||||
#expect(!ContextAction.openDiff("src/a.php").isEmphasized)
|
||||
#expect(!ContextAction.openDiff("src/a.php").isDestructive)
|
||||
}
|
||||
|
||||
@Test func aSelectionCanBeReadAloudAfterCopyReference() {
|
||||
|
||||
Reference in New Issue
Block a user