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",
|
2023-05-21 09:00:29 +02:00
|
|
|
ExtraCmdArgs: []string{},
|
2023-02-19 04:29:04 +02:00
|
|
|
Skip: false,
|
2023-02-26 03:56:08 +02:00
|
|
|
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)
|
|
|
|
|
2023-05-25 13:11:51 +02:00
|
|
|
t.ExpectPopup().Menu().Title(Equals("Keybindings")).
|
2023-07-28 10:53:00 +02:00
|
|
|
Select(Contains("Next tab")).
|
2023-02-19 04:29:04 +02:00
|
|
|
Confirm()
|
|
|
|
|
2023-07-28 10:53:00 +02:00
|
|
|
t.Views().Worktrees().IsFocused()
|
2023-02-19 04:29:04 +02:00
|
|
|
},
|
|
|
|
})
|