mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-11-29 22:48:24 +02:00
Add a root item ("/") if files at top level have changed
This commit is contained in:
@@ -21,11 +21,17 @@ var DiscardVariousChanges = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
label string
|
||||
}
|
||||
|
||||
t.Views().Files().
|
||||
IsFocused().
|
||||
TopLines(
|
||||
Equals("▼ /").IsSelected(),
|
||||
)
|
||||
|
||||
discardOneByOne := func(files []statusFile) {
|
||||
for _, file := range files {
|
||||
t.Views().Files().
|
||||
IsFocused().
|
||||
SelectedLine(Contains(file.status + " " + file.label)).
|
||||
NavigateToLine(Contains(file.status + " " + file.label)).
|
||||
Press(keys.Universal.Remove)
|
||||
|
||||
t.ExpectPopup().Menu().
|
||||
|
||||
Reference in New Issue
Block a user