mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-02-05 13:24:54 +02:00
25 lines
661 B
Go
25 lines
661 B
Go
|
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",
|
||
|
ExtraCmdArgs: "",
|
||
|
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()
|
||
|
},
|
||
|
})
|