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

Add confirmation for hard reset when there are uncommitted changes

This commit is contained in:
Stefan Haller
2025-07-06 14:24:50 +02:00
parent f872912c07
commit 7153305174
4 changed files with 32 additions and 10 deletions

View File

@ -97,6 +97,11 @@ var ResetToUpstream = NewIntegrationTest(NewIntegrationTestArgs{
Title(Equals("Reset to origin/hard-branch")).
Select(Contains("Hard reset")).
Confirm()
t.ExpectPopup().Confirmation().
Title(Equals("Hard reset")).
Content(Contains("Are you sure you want to do a hard reset?")).
Confirm()
})
t.Views().Commits().Lines(Contains("hard commit"))
t.Views().Files().IsEmpty()