diff options
Diffstat (limited to 'pkg/integration/tests/stash/stash.go')
-rw-r--r-- | pkg/integration/tests/stash/stash.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/pkg/integration/tests/stash/stash.go b/pkg/integration/tests/stash/stash.go index 34e376886..16c51537a 100644 --- a/pkg/integration/tests/stash/stash.go +++ b/pkg/integration/tests/stash/stash.go @@ -15,18 +15,18 @@ var Stash = NewIntegrationTest(NewIntegrationTestArgs{ shell.CreateFile("file", "content") shell.GitAddAll() }, - Run: func(shell *Shell, input *Input, keys config.KeybindingConfig) { - input.Model().StashCount(0) - input.Model().WorkingTreeFileCount(1) + Run: func(shell *Shell, t *TestDriver, keys config.KeybindingConfig) { + t.Model().StashCount(0) + t.Model().WorkingTreeFileCount(1) - input.Views().Files(). + t.Views().Files(). Press(keys.Files.ViewStashOptions) - input.ExpectMenu().Title(Equals("Stash options")).Select(MatchesRegexp("stash all changes$")).Confirm() + t.ExpectMenu().Title(Equals("Stash options")).Select(MatchesRegexp("stash all changes$")).Confirm() - input.ExpectPrompt().Title(Equals("Stash changes")).Type("my stashed file").Confirm() + t.ExpectPrompt().Title(Equals("Stash changes")).Type("my stashed file").Confirm() - input.Model().StashCount(1) - input.Model().WorkingTreeFileCount(0) + t.Model().StashCount(1) + t.Model().WorkingTreeFileCount(0) }, }) |