mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-04-21 04:25:53 +03:00
27 lines
851 B
Go
27 lines
851 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.GetUserConfig().Keybinding.Universal.PrevItem = "<disabled>"
|
|
config.GetUserConfig().Keybinding.Universal.NextItem = "<disabled>"
|
|
config.GetUserConfig().Keybinding.Universal.NextTab = "<up>"
|
|
config.GetUserConfig().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()
|
|
},
|
|
})
|