add switch-to-view methods

This commit is contained in:
Jesse Duffield
2022-12-26 16:49:54 +11:00
parent 9a6f21ce42
commit c841ba8237
22 changed files with 77 additions and 51 deletions

View File

@@ -22,9 +22,9 @@ var Diff = NewIntegrationTest(NewIntegrationTestArgs{
shell.Checkout("branch-a")
},
Run: func(shell *Shell, input *Input, assert *Assert, keys config.KeybindingConfig) {
input.SwitchToBranchesWindow()
input.SwitchToBranchesView()
assert.CurrentView().Name("localBranches").TopLines(
assert.CurrentView().TopLines(
Contains("branch-a"),
Contains("branch-b"),
)