1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-10 04:07:18 +02:00
lazygit/pkg/integration/tests/ui/switch_tab_from_menu.go

26 lines
666 B
Go
Raw Normal View History

2023-02-19 04:29:04 +02:00
package ui
import (
"github.com/jesseduffield/lazygit/pkg/config"
. "github.com/jesseduffield/lazygit/pkg/integration/components"
)
var SwitchTabFromMenu = NewIntegrationTest(NewIntegrationTestArgs{
Description: "Switch tab via the options menu",
ExtraCmdArgs: []string{},
2023-02-19 04:29:04 +02:00
Skip: false,
SetupConfig: func(config *config.AppConfig) {},
2023-02-19 04:29:04 +02:00
SetupRepo: func(shell *Shell) {
},
Run: func(t *TestDriver, keys config.KeybindingConfig) {
t.Views().Files().IsFocused().
Press(keys.Universal.OptionMenuAlt1)
t.ExpectPopup().Menu().Title(Equals("Keybindings")).
Select(Contains("Next tab")).
2023-02-19 04:29:04 +02:00
Confirm()
t.Views().Worktrees().IsFocused()
2023-02-19 04:29:04 +02:00
},
})