mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 12:25:47 +02:00
This solves https://github.com/jesseduffield/lazygit/issues/3961 because we no longer have a combination of the default and the user defined list. We just have the user defined list.
32 lines
981 B
Go
32 lines
981 B
Go
package status
|
|
|
|
import (
|
|
"github.com/jesseduffield/lazygit/pkg/config"
|
|
. "github.com/jesseduffield/lazygit/pkg/integration/components"
|
|
)
|
|
|
|
var LogCmd = NewIntegrationTest(NewIntegrationTestArgs{
|
|
Description: "Cycle between two different log commands in the Status view",
|
|
ExtraCmdArgs: []string{},
|
|
Skip: false,
|
|
SetupConfig: func(config *config.AppConfig) {
|
|
config.GetUserConfig().Git.AllBranchesLogCmds = []string{`echo "view1"`, `echo "view2"`}
|
|
},
|
|
SetupRepo: func(shell *Shell) {},
|
|
Run: func(t *TestDriver, keys config.KeybindingConfig) {
|
|
t.Views().Status().
|
|
Focus().
|
|
Press(keys.Status.AllBranchesLogGraph)
|
|
t.Views().Main().Content(Contains("view1"))
|
|
|
|
t.Views().Status().
|
|
Focus().
|
|
Press(keys.Status.AllBranchesLogGraph)
|
|
t.Views().Main().Content(Contains("view2").DoesNotContain("view1"))
|
|
|
|
t.Views().Status().
|
|
Focus().
|
|
Press(keys.Status.AllBranchesLogGraph)
|
|
t.Views().Main().Content(Contains("view1").DoesNotContain("view2"))
|
|
},
|
|
})
|