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

Merge pull request #2377 from shinhs0506/clear-staging-after-commit

This commit is contained in:
Jesse Duffield
2023-03-24 19:13:00 +11:00
committed by GitHub
5 changed files with 40 additions and 12 deletions

View File

@ -53,8 +53,12 @@ var Staged = NewIntegrationTest(NewIntegrationTestArgs{
Contains(commitMessage),
)
t.Views().StagingSecondary().IsFocused()
t.Views().StagingSecondary().
IsEmpty()
// TODO: assert that the staging panel has been refreshed (it currently does not get correctly refreshed)
t.Views().Staging().
IsFocused().
Content(Contains("+myfile content")).
Content(DoesNotContain("+with a second line"))
},
})

View File

@ -53,8 +53,12 @@ var StagedWithoutHooks = NewIntegrationTest(NewIntegrationTestArgs{
Contains("WIP" + commitMessage),
)
t.Views().StagingSecondary().IsFocused()
t.Views().StagingSecondary().
IsEmpty()
// TODO: assert that the staging panel has been refreshed (it currently does not get correctly refreshed)
t.Views().Staging().
IsFocused().
Content(Contains("+myfile content")).
Content(DoesNotContain("+with a second line"))
},
})