mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-03-27 22:01:46 +02:00
27 lines
831 B
Go
27 lines
831 B
Go
package misc
|
|
|
|
import (
|
|
"github.com/jesseduffield/lazygit/pkg/config"
|
|
. "github.com/jesseduffield/lazygit/pkg/integration/components"
|
|
)
|
|
|
|
var DisabledKeybindings = NewIntegrationTest(NewIntegrationTestArgs{
|
|
Description: "Confirms you can disable keybindings by setting them to <disabled>",
|
|
ExtraCmdArgs: []string{},
|
|
Skip: false,
|
|
SetupConfig: func(config *config.AppConfig) {
|
|
config.UserConfig.Keybinding.Universal.PrevItem = "<disabled>"
|
|
config.UserConfig.Keybinding.Universal.NextItem = "<disabled>"
|
|
config.UserConfig.Keybinding.Universal.NextTab = "<up>"
|
|
config.UserConfig.Keybinding.Universal.PrevTab = "<down>"
|
|
},
|
|
SetupRepo: func(shell *Shell) {},
|
|
Run: func(t *TestDriver, keys config.KeybindingConfig) {
|
|
t.Views().Files().
|
|
IsFocused().
|
|
Press("<up>")
|
|
|
|
t.Views().Worktrees().IsFocused()
|
|
},
|
|
})
|