1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-31 14:24:25 +03:00

refresh the staging panel on successful commit

apply formatting
This commit is contained in:
John Shin
2023-01-18 08:14:03 -08:00
committed by Jesse Duffield
parent 6127e487dd
commit 776d8f4d2e
3 changed files with 16 additions and 4 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"))
},
})