mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
add switch-to-view methods
This commit is contained in:
@ -26,9 +26,9 @@ var Reset = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
Contains("root commit"),
|
||||
)
|
||||
|
||||
input.SwitchToBranchesWindow()
|
||||
input.SwitchToBranchesView()
|
||||
|
||||
assert.CurrentView().Name("localBranches").Lines(
|
||||
assert.CurrentView().Lines(
|
||||
Contains("current-branch"),
|
||||
Contains("other-branch"),
|
||||
)
|
||||
@ -42,8 +42,8 @@ var Reset = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
assert.CurrentView().Name("localBranches")
|
||||
|
||||
// assert that we now have the expected commits in the commit panel
|
||||
input.SwitchToCommitsWindow()
|
||||
assert.CurrentView().Name("commits").Lines(
|
||||
input.SwitchToCommitsView()
|
||||
assert.CurrentView().Lines(
|
||||
Contains("other-branch commit"),
|
||||
Contains("root commit"),
|
||||
)
|
||||
|
Reference in New Issue
Block a user