summaryrefslogtreecommitdiffstats
path: root/pkg/integration/tests/branch/delete.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-12-27 10:50:00 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-12-27 21:26:17 +1100
commitc976839a632c61917bcc81dbaea8ec32cf5249e8 (patch)
tree9854468690e2f77c044061f9a4521a2f7e62ae23 /pkg/integration/tests/branch/delete.go
parent17140e1d8dd84de6dca12fce8d0e7ed9b57d6177 (diff)
refactor prompt handling in integration tests
Diffstat (limited to 'pkg/integration/tests/branch/delete.go')
-rw-r--r--pkg/integration/tests/branch/delete.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/integration/tests/branch/delete.go b/pkg/integration/tests/branch/delete.go
index 01bd4edda..0452898db 100644
--- a/pkg/integration/tests/branch/delete.go
+++ b/pkg/integration/tests/branch/delete.go
@@ -31,7 +31,10 @@ var Delete = NewIntegrationTest(NewIntegrationTestArgs{
input.NextItem()
input.Press(keys.Universal.Remove)
- input.AcceptConfirmation(Equals("Delete Branch"), Contains("Are you sure you want to delete the branch 'branch-one'?"))
+ input.InConfirm().
+ Title(Equals("Delete Branch")).
+ Content(Contains("Are you sure you want to delete the branch 'branch-one'?")).
+ Confirm()
assert.CurrentView().Name("localBranches").
Lines(