1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

minor changes

This commit is contained in:
Jesse Duffield
2022-12-28 10:23:54 +11:00
parent ed93e0a2b0
commit 06c878c051
2 changed files with 25 additions and 22 deletions

View File

@ -29,13 +29,16 @@ var Reset = NewIntegrationTest(NewIntegrationTestArgs{
t.Views().Branches().
Focus().
Lines(
Contains("current-branch"),
Contains("current-branch").IsSelected(),
Contains("other-branch"),
).
SelectNextItem().
Press(keys.Commits.ViewResetOptions)
t.ExpectMenu().Title(Contains("reset to other-branch")).Select(Contains("hard reset")).Confirm()
t.ExpectMenu().
Title(Contains("reset to other-branch")).
Select(Contains("hard reset")).
Confirm()
// assert that we now have the expected commits in the commit panel
t.Views().Commits().