diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-12-27 11:21:44 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-12-27 21:26:18 +1100 |
commit | 8052ac4fd6f4ea96fbfb7a3ff16799ba981be82a (patch) | |
tree | 7ad44f3389865072f67bcd3aeb111da3b5ad3822 /pkg/integration/tests/stash | |
parent | c976839a632c61917bcc81dbaea8ec32cf5249e8 (diff) |
add prompt asserter
Diffstat (limited to 'pkg/integration/tests/stash')
-rw-r--r-- | pkg/integration/tests/stash/rename.go | 2 | ||||
-rw-r--r-- | pkg/integration/tests/stash/stash.go | 2 | ||||
-rw-r--r-- | pkg/integration/tests/stash/stash_including_untracked_files.go | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/pkg/integration/tests/stash/rename.go b/pkg/integration/tests/stash/rename.go index 7088de423..99036b7f6 100644 --- a/pkg/integration/tests/stash/rename.go +++ b/pkg/integration/tests/stash/rename.go @@ -28,7 +28,7 @@ var Rename = NewIntegrationTest(NewIntegrationTestArgs{ input.NextItem() input.Press(keys.Stash.RenameStash) - input.Prompt(Equals("Rename stash: stash@{1}"), " baz") + input.Prompt().Title(Equals("Rename stash: stash@{1}")).Type(" baz").Confirm() assert.CurrentView().SelectedLine(Equals("On master: foo baz")) }, diff --git a/pkg/integration/tests/stash/stash.go b/pkg/integration/tests/stash/stash.go index 23ff7e99d..996006489 100644 --- a/pkg/integration/tests/stash/stash.go +++ b/pkg/integration/tests/stash/stash.go @@ -23,7 +23,7 @@ var Stash = NewIntegrationTest(NewIntegrationTestArgs{ input.Menu(Equals("Stash options"), MatchesRegexp("stash all changes$")) - input.Prompt(Equals("Stash changes"), "my stashed file") + input.Prompt().Title(Equals("Stash changes")).Type("my stashed file").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 d193600df..b63796bbc 100644 --- a/pkg/integration/tests/stash/stash_including_untracked_files.go +++ b/pkg/integration/tests/stash/stash_including_untracked_files.go @@ -24,7 +24,7 @@ var StashIncludingUntrackedFiles = NewIntegrationTest(NewIntegrationTestArgs{ input.Menu(Equals("Stash options"), Contains("stash all changes including untracked files")) - input.Prompt(Equals("Stash changes"), "my stashed file") + input.Prompt().Title(Equals("Stash changes")).Type("my stashed file").Confirm() assert.StashCount(1) assert.WorkingTreeFileCount(0) |