summaryrefslogtreecommitdiffstats
path: root/pkg/integration/tests/status/click_repo_name_to_open_repos_menu.go
blob: 5e1eab092e88b362e137fed50e54b32df66ee18a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package status

import (
	"github.com/jesseduffield/lazygit/pkg/config"
	. "github.com/jesseduffield/lazygit/pkg/integration/components"
)

var ClickRepoNameToOpenReposMenu = NewIntegrationTest(NewIntegrationTestArgs{
	Description:  "Click on the repo name in the status side panel to open the recent repositories menu",
	ExtraCmdArgs: []string{},
	Skip:         false,
	SetupConfig:  func(config *config.AppConfig) {},
	SetupRepo:    func(shell *Shell) {},
	Run: func(t *TestDriver, keys config.KeybindingConfig) {
		t.Views().Status().Click(1, 0)
		t.ExpectPopup().Menu().Title(Equals("Recent repositories"))
	},
})