diff options
Diffstat (limited to 'pkg/integration/tests/stash')
-rw-r--r-- | pkg/integration/tests/stash/stash.go | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkg/integration/tests/stash/stash.go b/pkg/integration/tests/stash/stash.go new file mode 100644 index 000000000..55095e42d --- /dev/null +++ b/pkg/integration/tests/stash/stash.go @@ -0,0 +1,27 @@ +package stash + +import ( + "github.com/jesseduffield/lazygit/pkg/config" + . "github.com/jesseduffield/lazygit/pkg/integration/components" +) + +var Stash = NewIntegrationTest(NewIntegrationTestArgs{ + Description: "Stashing files", + ExtraCmdArgs: "", + Skip: false, + SetupConfig: func(config *config.AppConfig) {}, + SetupRepo: func(shell *Shell) { + shell.EmptyCommit("initial commit") + shell.CreateFile("file", "content") + shell.GitAddAll() + }, + Run: func(shell *Shell, input *Input, assert *Assert, keys config.KeybindingConfig) { + assert.StashCount(0) + + input.PressKeys(keys.Files.ViewStashOptions) + input.Confirm() + input.Confirm() + + assert.StashCount(1) + }, +}) |