mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-03-27 22:01:46 +02:00
show file tree by default in integration tests
This commit is contained in:
parent
f7e8b2dd71
commit
45d45d2397
@ -10,9 +10,7 @@ var DirWithUntrackedFile = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Description: "When selecting a directory that contains an untracked file, we should not get an error",
|
Description: "When selecting a directory that contains an untracked file, we should not get an error",
|
||||||
ExtraCmdArgs: "",
|
ExtraCmdArgs: "",
|
||||||
Skip: false,
|
Skip: false,
|
||||||
SetupConfig: func(config *config.AppConfig) {
|
SetupConfig: func(config *config.AppConfig) {},
|
||||||
config.UserConfig.Gui.ShowFileTree = true
|
|
||||||
},
|
|
||||||
SetupRepo: func(shell *Shell) {
|
SetupRepo: func(shell *Shell) {
|
||||||
shell.CreateDir("dir")
|
shell.CreateDir("dir")
|
||||||
shell.CreateFile("dir/file", "foo")
|
shell.CreateFile("dir/file", "foo")
|
||||||
|
@ -25,15 +25,15 @@ var DiscardStagedChanges = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
IsFocused().
|
IsFocused().
|
||||||
Lines(
|
Lines(
|
||||||
Contains(` M file2`).IsSelected(),
|
Contains(` M file2`).IsSelected(),
|
||||||
Contains(` M fileToRemove`),
|
|
||||||
Contains(`?? file3`),
|
Contains(`?? file3`),
|
||||||
|
Contains(` M fileToRemove`),
|
||||||
).
|
).
|
||||||
SelectNextItem().
|
NavigateToLine(Contains(`fileToRemove`)).
|
||||||
PressPrimaryAction().
|
PressPrimaryAction().
|
||||||
Lines(
|
Lines(
|
||||||
Contains(` M file2`),
|
Contains(` M file2`),
|
||||||
Contains(`M fileToRemove`).IsSelected(),
|
|
||||||
Contains(`?? file3`),
|
Contains(`?? file3`),
|
||||||
|
Contains(`M fileToRemove`).IsSelected(),
|
||||||
).
|
).
|
||||||
Press(keys.Files.ViewResetOptions)
|
Press(keys.Files.ViewResetOptions)
|
||||||
|
|
||||||
|
@ -9,9 +9,7 @@ var FetchPrune = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Description: "Fetch from the remote with the 'prune' option set in the git config",
|
Description: "Fetch from the remote with the 'prune' option set in the git config",
|
||||||
ExtraCmdArgs: "",
|
ExtraCmdArgs: "",
|
||||||
Skip: false,
|
Skip: false,
|
||||||
SetupConfig: func(config *config.AppConfig) {
|
SetupConfig: func(config *config.AppConfig) {},
|
||||||
config.UserConfig.Git.AutoFetch = false
|
|
||||||
},
|
|
||||||
SetupRepo: func(shell *Shell) {
|
SetupRepo: func(shell *Shell) {
|
||||||
// This option makes it so that git checks for deleted branches in the remote
|
// This option makes it so that git checks for deleted branches in the remote
|
||||||
// upon fetching.
|
// upon fetching.
|
||||||
|
@ -9,9 +9,7 @@ var SwitchTabFromMenu = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Description: "Switch tab via the options menu",
|
Description: "Switch tab via the options menu",
|
||||||
ExtraCmdArgs: "",
|
ExtraCmdArgs: "",
|
||||||
Skip: false,
|
Skip: false,
|
||||||
SetupConfig: func(config *config.AppConfig) {
|
SetupConfig: func(config *config.AppConfig) {},
|
||||||
config.UserConfig.Git.AutoFetch = false
|
|
||||||
},
|
|
||||||
SetupRepo: func(shell *Shell) {
|
SetupRepo: func(shell *Shell) {
|
||||||
},
|
},
|
||||||
Run: func(t *TestDriver, keys config.KeybindingConfig) {
|
Run: func(t *TestDriver, keys config.KeybindingConfig) {
|
||||||
|
@ -8,8 +8,6 @@ gui:
|
|||||||
- bold
|
- bold
|
||||||
SelectedRangeBgcolor:
|
SelectedRangeBgcolor:
|
||||||
- reverse
|
- reverse
|
||||||
# TODO: we should update most tests to use a file tree now that it's the default
|
|
||||||
showFileTree: false
|
|
||||||
git:
|
git:
|
||||||
# We don't want to run any periodic background git commands because it'll introduce race conditions and flakiness.
|
# We don't want to run any periodic background git commands because it'll introduce race conditions and flakiness.
|
||||||
# If we need to refresh something from within the test (which should only really happen if we've invoked a
|
# If we need to refresh something from within the test (which should only really happen if we've invoked a
|
||||||
|
Loading…
x
Reference in New Issue
Block a user