Improve loads of fancy things in relation to the mouse pointer
This commit is contained in:
@@ -391,6 +391,14 @@ import Testing
|
||||
#expect(harness.toastTitles == ["Passed to agent"])
|
||||
}
|
||||
|
||||
@Test func bouwenInsertsTheCommandIntoTheAgent() async {
|
||||
let harness = WorkspaceHarness()
|
||||
await harness.start()
|
||||
await harness.perform(.context(.bouwen("2026-10-02-001-x")))
|
||||
#expect(harness.agent.sent == [BracketedPaste.wrap("/bouwen 2026-10-02-001-x", composerHasText: false)])
|
||||
#expect(harness.toastTitles == ["Passed to agent"])
|
||||
}
|
||||
|
||||
@Test func aDirtyTabAsksBeforeItCloses() async {
|
||||
let harness = WorkspaceHarness(contents: ["a.php": "one"])
|
||||
await harness.start()
|
||||
@@ -576,6 +584,14 @@ import Testing
|
||||
#expect(editor?.mode(for: "a.md") == .preview)
|
||||
}
|
||||
|
||||
@Test func showDiffOpensTheDiffOfTheOpenFileAtThatLine() async {
|
||||
let harness = WorkspaceHarness(git: snapshot([("a.php", .modified, false)]), contents: ["a.php": "b"])
|
||||
await harness.start()
|
||||
harness.model.open("a.php")
|
||||
await harness.perform(.context(.showDiff("a.php", line: 3)))
|
||||
#expect(harness.model.overlay.current == .diff(DiffOverlayRequest(path: "a.php", side: nil, focusLine: 3)))
|
||||
}
|
||||
|
||||
@Test func theRecentProjectListLeavesOutTheOpenProject() async {
|
||||
let harness = WorkspaceHarness(recents: [RecentProject(path: "/elsewhere", name: "elsewhere")])
|
||||
await harness.start()
|
||||
|
||||
Reference in New Issue
Block a user