mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-01-10 04:07:18 +02:00
26 lines
652 B
Go
26 lines
652 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: "",
|
|
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.OptionMenuAlt1)
|
|
|
|
t.ExpectPopup().Menu().Title(Equals("Menu")).
|
|
Select(Contains("next tab")).
|
|
Confirm()
|
|
|
|
t.Views().Submodules().IsFocused()
|
|
},
|
|
})
|