toggling between views made possible

This commit is contained in:
2026-11-09 14:01:49 +01:00
parent cc6651c08a
commit 2887965a9e
18 changed files with 149 additions and 17 deletions
@@ -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() {