mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-08-06 22:33:07 +02:00
Fix more unstable tests (#4721)
Similar to what was done in 457cdce61d
, and for the same reason.
This commit is contained in:
@ -9,7 +9,9 @@ var Checkout = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Description: "Checkout a commit as a detached head, or checkout an existing branch at a commit",
|
Description: "Checkout a commit as a detached head, or checkout an existing branch at a commit",
|
||||||
ExtraCmdArgs: []string{},
|
ExtraCmdArgs: []string{},
|
||||||
Skip: false,
|
Skip: false,
|
||||||
SetupConfig: func(config *config.AppConfig) {},
|
SetupConfig: func(config *config.AppConfig) {
|
||||||
|
config.GetUserConfig().Git.LocalBranchSortOrder = "alphabetical"
|
||||||
|
},
|
||||||
SetupRepo: func(shell *Shell) {
|
SetupRepo: func(shell *Shell) {
|
||||||
shell.EmptyCommit("one")
|
shell.EmptyCommit("one")
|
||||||
shell.EmptyCommit("two")
|
shell.EmptyCommit("two")
|
||||||
|
@ -37,6 +37,8 @@ var SuggestionsCommand = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cfg.GetUserConfig().Git.LocalBranchSortOrder = "alphabetical"
|
||||||
},
|
},
|
||||||
Run: func(t *TestDriver, keys config.KeybindingConfig) {
|
Run: func(t *TestDriver, keys config.KeybindingConfig) {
|
||||||
t.Views().Branches().
|
t.Views().Branches().
|
||||||
|
@ -37,6 +37,8 @@ var SuggestionsPreset = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cfg.GetUserConfig().Git.LocalBranchSortOrder = "alphabetical"
|
||||||
},
|
},
|
||||||
Run: func(t *TestDriver, keys config.KeybindingConfig) {
|
Run: func(t *TestDriver, keys config.KeybindingConfig) {
|
||||||
t.Views().Branches().
|
t.Views().Branches().
|
||||||
|
@ -9,7 +9,9 @@ var NestedFilter = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Description: "Filter in the several nested panels and verify the filters are preserved as you escape back to the surface",
|
Description: "Filter in the several nested panels and verify the filters are preserved as you escape back to the surface",
|
||||||
ExtraCmdArgs: []string{},
|
ExtraCmdArgs: []string{},
|
||||||
Skip: false,
|
Skip: false,
|
||||||
SetupConfig: func(config *config.AppConfig) {},
|
SetupConfig: func(config *config.AppConfig) {
|
||||||
|
config.GetUserConfig().Git.LocalBranchSortOrder = "alphabetical"
|
||||||
|
},
|
||||||
SetupRepo: func(shell *Shell) {
|
SetupRepo: func(shell *Shell) {
|
||||||
// need to create some branches, each with their own commits
|
// need to create some branches, each with their own commits
|
||||||
shell.NewBranch("branch-gold")
|
shell.NewBranch("branch-gold")
|
||||||
|
@ -11,6 +11,7 @@ var FetchAndAutoForwardBranchesAllBranches = NewIntegrationTest(NewIntegrationTe
|
|||||||
Skip: false,
|
Skip: false,
|
||||||
SetupConfig: func(config *config.AppConfig) {
|
SetupConfig: func(config *config.AppConfig) {
|
||||||
config.GetUserConfig().Git.AutoForwardBranches = "allBranches"
|
config.GetUserConfig().Git.AutoForwardBranches = "allBranches"
|
||||||
|
config.GetUserConfig().Git.LocalBranchSortOrder = "alphabetical"
|
||||||
},
|
},
|
||||||
SetupRepo: func(shell *Shell) {
|
SetupRepo: func(shell *Shell) {
|
||||||
shell.CreateNCommits(3)
|
shell.CreateNCommits(3)
|
||||||
|
@ -11,6 +11,7 @@ var FetchAndAutoForwardBranchesNone = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
Skip: false,
|
Skip: false,
|
||||||
SetupConfig: func(config *config.AppConfig) {
|
SetupConfig: func(config *config.AppConfig) {
|
||||||
config.GetUserConfig().Git.AutoForwardBranches = "none"
|
config.GetUserConfig().Git.AutoForwardBranches = "none"
|
||||||
|
config.GetUserConfig().Git.LocalBranchSortOrder = "alphabetical"
|
||||||
},
|
},
|
||||||
SetupRepo: func(shell *Shell) {
|
SetupRepo: func(shell *Shell) {
|
||||||
shell.CreateNCommits(3)
|
shell.CreateNCommits(3)
|
||||||
|
@ -11,6 +11,7 @@ var FetchAndAutoForwardBranchesOnlyMainBranches = NewIntegrationTest(NewIntegrat
|
|||||||
Skip: false,
|
Skip: false,
|
||||||
SetupConfig: func(config *config.AppConfig) {
|
SetupConfig: func(config *config.AppConfig) {
|
||||||
config.GetUserConfig().Git.AutoForwardBranches = "onlyMainBranches"
|
config.GetUserConfig().Git.AutoForwardBranches = "onlyMainBranches"
|
||||||
|
config.GetUserConfig().Git.LocalBranchSortOrder = "alphabetical"
|
||||||
},
|
},
|
||||||
SetupRepo: func(shell *Shell) {
|
SetupRepo: func(shell *Shell) {
|
||||||
shell.CreateNCommits(3)
|
shell.CreateNCommits(3)
|
||||||
|
Reference in New Issue
Block a user