migrate initial open test
This commit is contained in:
24
pkg/integration/tests/misc/initial_open.go
Normal file
24
pkg/integration/tests/misc/initial_open.go
Normal file
@@ -0,0 +1,24 @@
|
||||
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()
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user