Improves helder

This commit is contained in:
2026-10-05 09:24:25 +02:00
parent 8fafea4fc3
commit 336987d821
44 changed files with 3454 additions and 542 deletions
@@ -476,11 +476,27 @@ import Testing
let harness = WorkspaceHarness()
await harness.start()
harness.model.perform(.toggleGit)
#expect(!harness.model.layout.isVisible(.sourceControl))
harness.model.perform(.focusCommitMessage)
#expect(harness.model.layout.gitVisible)
#expect(harness.model.layout.isVisible(.sourceControl))
#expect(harness.model.focusRequest?.target == .commitMessage)
}
@Test func aPaneToggleHidesItsColumnAndAHiddenColumnTakesNoFocus() async {
let harness = WorkspaceHarness()
await harness.start()
harness.model.perform(.focus(.terminal))
harness.model.perform(.togglePane(.terminal))
#expect(!harness.model.layout.isVisible(.terminal))
#expect(harness.model.layout.activePanel == nil)
harness.model.perform(.focus(.editor))
harness.model.perform(.focus(.terminal))
#expect(harness.model.layout.activePanel == .editor)
#expect(harness.model.focusRequest?.target == .panel(.editor))
harness.model.perform(.togglePane(.terminal))
#expect(harness.model.layout.isVisible(.terminal))
}
@Test func rowCursorKeysDriveTheFocusedList() async {
let harness = WorkspaceHarness(git: snapshot([("a.php", .modified, false), ("b.php", .added, true)]),
contents: ["a.php": "", "b.php": ""])