diff options
author | Andrew Hynes <andrew.hynes@colabsoftware.com> | 2022-11-12 18:03:43 -0330 |
---|---|---|
committer | Andrew Hynes <andrew.hynes@colabsoftware.com> | 2022-11-12 18:09:15 -0330 |
commit | 66a253916ea35a1d73b6df4f5daea1164df289c4 (patch) | |
tree | 5eb9d9d62095d1c09e761e599d08174c5b84cf1b /pkg/integration/tests/stash | |
parent | a47e72892aa9ea5860869a914905cae76d3bd94e (diff) |
test: add more assertions
Diffstat (limited to 'pkg/integration/tests/stash')
-rw-r--r-- | pkg/integration/tests/stash/stash.go | 6 | ||||
-rw-r--r-- | pkg/integration/tests/stash/stash_including_untracked_files.go | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/pkg/integration/tests/stash/stash.go b/pkg/integration/tests/stash/stash.go index af247550b..00d666168 100644 --- a/pkg/integration/tests/stash/stash.go +++ b/pkg/integration/tests/stash/stash.go @@ -23,9 +23,11 @@ var Stash = NewIntegrationTest(NewIntegrationTestArgs{ assert.InMenu() input.PressKeys("a") - input.Type("stash name") - input.Confirm() + assert.InPrompt() + assert.MatchCurrentViewTitle(Equals("Stash changes")) + input.Type("my stashed file") + input.Confirm() assert.StashCount(1) assert.WorkingTreeFileCount(0) }, diff --git a/pkg/integration/tests/stash/stash_including_untracked_files.go b/pkg/integration/tests/stash/stash_including_untracked_files.go index 4ed7957ac..2f37f943c 100644 --- a/pkg/integration/tests/stash/stash_including_untracked_files.go +++ b/pkg/integration/tests/stash/stash_including_untracked_files.go @@ -24,9 +24,11 @@ var StashIncludingUntrackedFiles = NewIntegrationTest(NewIntegrationTestArgs{ assert.InMenu() input.PressKeys("U") - input.Type("stash name") - input.Confirm() + assert.InPrompt() + assert.MatchCurrentViewTitle(Equals("Stash changes")) + input.Type("my stashed file") + input.Confirm() assert.StashCount(1) assert.WorkingTreeFileCount(0) }, |