mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-15 00:15:32 +02:00
Add commit graph demo
This commit is contained in:
79
pkg/integration/tests/demo/commit_graph.go
Normal file
79
pkg/integration/tests/demo/commit_graph.go
Normal file
@ -0,0 +1,79 @@
|
||||
package demo
|
||||
|
||||
import (
|
||||
"github.com/jesseduffield/lazygit/pkg/config"
|
||||
. "github.com/jesseduffield/lazygit/pkg/integration/components"
|
||||
)
|
||||
|
||||
var CommitGraph = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
Description: "Show commit graph",
|
||||
ExtraCmdArgs: []string{"log"},
|
||||
Skip: false,
|
||||
IsDemo: true,
|
||||
SetupConfig: func(config *config.AppConfig) {
|
||||
config.UserConfig.Gui.NerdFontsVersion = "3"
|
||||
config.UserConfig.Gui.AuthorColors = map[string]string{
|
||||
"Fredrica Greenhill": "#fb5aa3",
|
||||
"Oscar Reuenthal": "#86c82f",
|
||||
"Paul Oberstein": "#ffd500",
|
||||
"Siegfried Kircheis": "#fe7e11",
|
||||
"Yang Wen-li": "#8e3ccb",
|
||||
}
|
||||
},
|
||||
SetupRepo: func(shell *Shell) {
|
||||
shell.CreateRepoHistory()
|
||||
},
|
||||
Run: func(t *TestDriver, keys config.KeybindingConfig) {
|
||||
t.SetCaptionPrefix("View commit log")
|
||||
t.Wait(1000)
|
||||
|
||||
t.Views().Commits().
|
||||
IsFocused().
|
||||
SelectNextItem().
|
||||
Wait(100).
|
||||
SelectNextItem().
|
||||
Wait(100).
|
||||
SelectNextItem().
|
||||
Wait(100).
|
||||
SelectNextItem().
|
||||
Wait(100).
|
||||
SelectNextItem().
|
||||
Wait(100).
|
||||
SelectNextItem().
|
||||
Wait(100).
|
||||
SelectNextItem().
|
||||
Wait(100).
|
||||
SelectNextItem().
|
||||
Wait(100).
|
||||
SelectNextItem().
|
||||
Wait(100).
|
||||
SelectNextItem().
|
||||
Wait(100).
|
||||
SelectNextItem().
|
||||
Wait(100).
|
||||
SelectNextItem().
|
||||
Wait(100).
|
||||
SelectNextItem().
|
||||
Wait(100).
|
||||
SelectNextItem().
|
||||
Wait(100).
|
||||
SelectNextItem().
|
||||
Wait(100).
|
||||
SelectNextItem().
|
||||
Wait(100).
|
||||
SelectNextItem().
|
||||
Wait(100).
|
||||
SelectNextItem().
|
||||
Wait(100).
|
||||
SelectNextItem().
|
||||
Wait(100).
|
||||
SelectNextItem().
|
||||
Wait(100).
|
||||
SelectNextItem().
|
||||
Wait(100).
|
||||
SelectNextItem().
|
||||
Wait(100).
|
||||
SelectNextItem().
|
||||
Wait(100)
|
||||
},
|
||||
})
|
Reference in New Issue
Block a user