From 66a253916ea35a1d73b6df4f5daea1164df289c4 Mon Sep 17 00:00:00 2001 From: Andrew Hynes Date: Sat, 12 Nov 2022 18:03:43 -0330 Subject: test: add more assertions --- pkg/integration/tests/stash/stash.go | 6 ++++-- pkg/integration/tests/stash/stash_including_untracked_files.go | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'pkg/integration/tests/stash') 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) }, -- cgit v1.2.3