Improves helder
This commit is contained in:
@@ -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": ""])
|
||||
|
||||
Reference in New Issue
Block a user