mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-01-03 22:39:23 +03:00
migrate open to branches with cli arg test
This commit is contained in:
18
pkg/integration/tests/branch/open_with_cli_arg.go
Normal file
18
pkg/integration/tests/branch/open_with_cli_arg.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package branch
|
||||
|
||||
import (
|
||||
"github.com/jesseduffield/lazygit/pkg/config"
|
||||
. "github.com/jesseduffield/lazygit/pkg/integration/components"
|
||||
)
|
||||
|
||||
var OpenWithCliArg = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
Description: "Open straight to branches panel using a CLI arg",
|
||||
ExtraCmdArgs: "branch",
|
||||
Skip: false,
|
||||
SetupConfig: func(config *config.AppConfig) {},
|
||||
SetupRepo: func(shell *Shell) {
|
||||
},
|
||||
Run: func(t *TestDriver, keys config.KeybindingConfig) {
|
||||
t.Views().Branches().IsFocused()
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user