/
githubmirror
/
lazygit
Обзор
Документация
Войти
/
githubmirror
/
lazygit
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
pkg/integration/tests/status/log_cmd.go
32 строки
981 B
Chris McDonnell
Migrate deprecated AllBranchesLogCmd to AllBranchesLogCmds
07 май 2025, 06:33
07 май 2025, 06:33
1028f8e
Код
Авторство
О чём код?
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")) }, })