2023-02-19 13:59:19 +11:00
|
|
|
package misc
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/jesseduffield/lazygit/pkg/config"
|
|
|
|
. "github.com/jesseduffield/lazygit/pkg/integration/components"
|
|
|
|
)
|
|
|
|
|
|
|
|
var InitialOpen = NewIntegrationTest(NewIntegrationTestArgs{
|
|
|
|
Description: "Confirms a popup appears on first opening Lazygit",
|
2023-05-21 17:00:29 +10:00
|
|
|
ExtraCmdArgs: []string{},
|
2023-02-19 13:59:19 +11:00
|
|
|
Skip: false,
|
|
|
|
SetupConfig: func(config *config.AppConfig) {
|
|
|
|
config.UserConfig.DisableStartupPopups = false
|
|
|
|
},
|
|
|
|
SetupRepo: func(shell *Shell) {},
|
|
|
|
Run: func(t *TestDriver, keys config.KeybindingConfig) {
|
|
|
|
t.ExpectPopup().Confirmation().
|
|
|
|
Title(Equals("")).
|
|
|
|
Content(Contains("Thanks for using lazygit!")).
|
|
|
|
Confirm()
|
|
|
|
|
|
|
|
t.Views().Files().IsFocused()
|
|
|
|
},
|
|
|
|
})
|