mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-08-28 02:24:49 -05:00
For legacy reasons, OptionMenu was set to `<disabled>`, and OptionMenuAlt1 to `?`. This doesn't make a lot of sense any more; get rid of OptionMenuAlt1 and bind OptionMenu to `?` by default. This is a breaking change for users who rebound OptionMenuAlt1 in their config, but it doesn't strike me as very likely, and it's easy enough to fix.
26 lines
662 B
Go
26 lines
662 B
Go
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{},
|
|
Skip: false,
|
|
SetupConfig: func(config *config.AppConfig) {},
|
|
SetupRepo: func(shell *Shell) {
|
|
},
|
|
Run: func(t *TestDriver, keys config.KeybindingConfig) {
|
|
t.Views().Files().IsFocused().
|
|
Press(keys.Universal.OptionMenu)
|
|
|
|
t.ExpectPopup().Menu().Title(Equals("Keybindings")).
|
|
Select(Contains("Next tab")).
|
|
Confirm()
|
|
|
|
t.Views().Worktrees().IsFocused()
|
|
},
|
|
})
|